Click or drag to resize

HostEnumerateDrives Method (String, Boolean)

Enumerates local drives from the specified host.

Namespace:  Alphaleonis.Win32.Network
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax
public static IEnumerable<DriveInfo> EnumerateDrives(
	string host,
	bool continueOnException
)

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 as a result from a failure,

such as unavailable resources.

Return Value

Type: IEnumerableDriveInfo
IEnumerableT drives from the specified host.
Exceptions
ExceptionCondition
NetworkInformationException
See Also