PathCollectionIsDrive Method |
Checks if the given path is a drive.
Namespace: Jam.ShellAssembly: ShellBrowser.Core (in ShellBrowser.Core.dll) Version: 7.2
Syntaxpublic static bool IsDrive(
string pPath,
bool pAcceptUNCPath = true
)
Public Shared Function IsDrive (
pPath As String,
Optional pAcceptUNCPath As Boolean = true
) As Boolean
public:
static bool IsDrive(
String^ pPath,
bool pAcceptUNCPath = true
)
static member IsDrive :
pPath : string *
?pAcceptUNCPath : bool
(* Defaults:
let _pAcceptUNCPath = defaultArg pAcceptUNCPath true
*)
-> bool Parameters
- pPath String
- A file system path
- pAcceptUNCPath Boolean (Optional)
- True, if UNC paths are valid, too.
Return Value
Booleantrue, if the given path is a directory like "C:\", false otherwise
See Also