PathCollectionIsDrive Method |
Checks if the given path is a drive.
Namespace:
Jam.Shell
Assembly:
ShellBrowser.Core (in ShellBrowser.Core.dll) Version: 7.1
Syntax public 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
- Type: SystemString
A file system path - pAcceptUNCPath (Optional)
- Type: SystemBoolean
True, if UNC paths are valid, too.
Return Value
Type:
Booleantrue, if the given path is a directory like "C:\", false otherwise
See Also