HostEnumerateSessions Method (String, String) |
[AlphaFS] Enumerates sessions established on the specified hostName.
Namespace:
Alphaleonis.Win32.Network
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax public static IEnumerable<SessionInfo> EnumerateSessions(
string hostName,
string clientName
)
Public Shared Function EnumerateSessions (
hostName As String,
clientName As String
) As IEnumerable(Of SessionInfo)
public:
static IEnumerable<SessionInfo^>^ EnumerateSessions(
String^ hostName,
String^ clientName
)
static member EnumerateSessions :
hostName : string *
clientName : string -> IEnumerable<SessionInfo>
Parameters
- hostName
- Type: SystemString
The DNS or NetBIOS name of the specified host. If this parameter is null, the local Computer is used. - clientName
- Type: SystemString
The name of the Computer session for which information is to be returned. If this parameter is null, information for all Computer sessions on the server is returned.
Return Value
Type:
IEnumerableSessionInfoAn
IEnumerableT collection from the specified
hostName.
See Also