HostEnumerateSessions Method (String, 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,
string userName
)
Public Shared Function EnumerateSessions (
hostName As String,
clientName As String,
userName As String
) As IEnumerable(Of SessionInfo)
public:
static IEnumerable<SessionInfo^>^ EnumerateSessions(
String^ hostName,
String^ clientName,
String^ userName
)
static member EnumerateSessions :
hostName : string *
clientName : string *
userName : 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. - userName
- Type: SystemString
The name of the user for which information is to be returned. If this parameter is null, information for all users is returned.
Return Value
Type:
IEnumerableSessionInfoAn
IEnumerableT collection from the specified
hostName.
See Also