RemoteRunspaceInfo.SessionId Property
Gets the session-specific identifier of the runspace. This identifier is unique only within a session.
Namespace: System.Management.Automation.Remoting
Assembly: System.Management.Automation (in system.management.automation.dll)
Usage
Syntax
'Declaration
Public ReadOnly Property SessionId As Integer
public int SessionId { get; }
public:
property int SessionId {
int get ();
}
/** @property */
public int get_SessionId ()
public function get SessionId () : int
Property Value
The session-specific identifier of the runspace. Be aware that runspaces in other sessions may have the same session identifier. Windows PowerShell guarantees only that this identifier is unique within a session.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP
Target Platforms
Windows 98, Windows 2000, Windows 2000 Server, Windows CE, Windows Server 2008, Windows 98 Second Edition, Pocket PC, Smart Phone, Windows Server 2003, Windows XP Professional, Windows Vista, Windows Server 2003 R2, Windows XP
See Also
Reference
RemoteRunspaceInfo Class
RemoteRunspaceInfo Members
System.Management.Automation.Remoting Namespace