UtilDrivesTryGetDriveInfo Method
Tries to get the corresponding DriveInfo for the specified drive letter.
Namespace: DevCase.Core.IO.Devices.DrivesAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static bool TryGetDriveInfo(
char driveLetter,
ref DriveInfo refDriveInfo
)
Public Shared Function TryGetDriveInfo (
driveLetter As Char,
ByRef refDriveInfo As DriveInfo
) As Boolean
Dim driveLetter As Char
Dim refDriveInfo As DriveInfo
Dim returnValue As Boolean
returnValue = UtilDrives.TryGetDriveInfo(driveLetter,
refDriveInfo)
public:
static bool TryGetDriveInfo(
wchar_t driveLetter,
DriveInfo^% refDriveInfo
)
static member TryGetDriveInfo :
driveLetter : char *
refDriveInfo : DriveInfo byref -> bool
No code example is currently available or this language may not be supported.
- driveLetter Char
-
The drive letter, such as "C" or "D".
- refDriveInfo DriveInfo
-
If this function returns successfully, refDriveInfo contains the resulting DriveInfo.
If this function returns unsuccessfully, refDriveInfo is null.
Boolean if successful;
otherwise.
This is a code example.
No code example is currently available or this language may not be supported.
Dim driveInfo As DriveInfo
Dim result As Boolean = TryGetDriveInfo("C"c, driveInfo)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.