HostEnumerateDrives Method (String, Boolean) |
Enumerates local drives from the specified host.
Namespace: Alphaleonis.Win32.NetworkAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static IEnumerable<string> EnumerateDrives(
string host,
bool continueOnException
)
Public Shared Function EnumerateDrives (
host As String,
continueOnException As Boolean
) As IEnumerable(Of String)
public:
static IEnumerable<String^>^ EnumerateDrives(
String^ host,
bool continueOnException
)
static member EnumerateDrives :
host : string *
continueOnException : bool -> IEnumerable<string>
Parameters
- host
- Type: SystemString
The DNS or NetBIOS name of the remote server. refers to the local host. - continueOnException
- Type: SystemBoolean
suppress any Exception that might be thrown a result from a failure,
such as unavailable resources.
Return Value
Type:
IEnumerableStringReturns
IEnumerableT drives from the specified host.
Exceptions See Also