SystemParameters.IsRemoteSession Property
Definition
Gets a value that indicates whether the calling process is associated with a Terminal Services client session.
public:
static property bool IsRemoteSession { bool get(); };
public static bool IsRemoteSession { get; }
[get: System.Security.SecurityCritical]
public static bool IsRemoteSession { get; }
member this.IsRemoteSession : bool
[<get: System.Security.SecurityCritical>]
member this.IsRemoteSession : bool
Public Shared ReadOnly Property IsRemoteSession As Boolean
Property Value
true
if the calling process is associated with a Terminal Services client session; false
if the calling process is associated with the Terminal Server console session.
- Attributes
Remarks
This system metric is used in a Terminal Services environment.
Maps to SM_REMOTESESSION. See GetSystemMetrics.
XAML Attribute Usage
<object property="{ SystemParameters.IsRemoteSession}
"/>