HostEnumerateOpenResources Method (String, String, String, Boolean) |
Enumerates open resources from the specified host.
Namespace: Alphaleonis.Win32.NetworkAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static IEnumerable<OpenResourceInfo> EnumerateOpenResources(
string host,
string basePath,
string typeName,
bool continueOnException
)
Public Shared Function EnumerateOpenResources (
host As String,
basePath As String,
typeName As String,
continueOnException As Boolean
) As IEnumerable(Of OpenResourceInfo)
public:
static IEnumerable<OpenResourceInfo^>^ EnumerateOpenResources(
String^ host,
String^ basePath,
String^ typeName,
bool continueOnException
)
static member EnumerateOpenResources :
host : string *
basePath : string *
typeName : string *
continueOnException : bool -> IEnumerable<OpenResourceInfo>
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 a result from a failure, such as unavailable resources.
Return Value
Type:
IEnumerableOpenResourceInfoReturns
IEnumerableT open resources from the specified
host.
Exceptions See Also