Click or drag to resize

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
)

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: IEnumerableSessionInfo
An IEnumerableT collection from the specified hostName.
See Also