HostEnumerateOpenConnections Method (String, String, Boolean) |
Enumerates open connections from the specified host.
Namespace:
Alphaleonis.Win32.Network
Assembly:
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 as a result from a failure,
such as unavailable resources.
Return Value
Type:
IEnumerableOpenConnectionInfoOpenConnectionInfo connection information from the specified
host.
Exceptions See Also