Click or drag to resize

HostEnumerateOpenResources Method (String, String, String, Boolean)

Enumerates open resources from the specified host.

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

Parameters

host
Type: SystemString
The DNS or NetBIOS name of the remote server. refers to the local host.
basePath
Type: SystemString
This parameter may be . Enumerates only resources that have the value of the basepath parameter as a prefix. (A prefix is the portion of a path that comes before a backslash.)
typeName
Type: SystemString
This parameter may be . The name of the user or the name of the connection; If typeName does not begin with two backslashes ("\\") it indicates the name of the user. If typeName begins with two backslashes ("\\") it indicates the name of the connection.
continueOnException
Type: SystemBoolean
suppress any Exception that might be thrown as a result from a failure, such as unavailable resources.

Return Value

Type: IEnumerableOpenResourceInfo
IEnumerableT open resources from the specified host.
Exceptions
See Also