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