SystemParameters.IsRemoteSession 属性

定义

获取一个值,该值指示调用进程是否与终端服务客户端会话相关联。

public:
 static property bool IsRemoteSession { bool get(); };
public static bool IsRemoteSession { [System.Security.SecurityCritical] get; }
public static bool IsRemoteSession { get; }
[<get: System.Security.SecurityCritical>]
static member IsRemoteSession : bool
static member IsRemoteSession : bool
Public Shared ReadOnly Property IsRemoteSession As Boolean

属性值

如果调用进程与终端服务客户端会话相关联,则为 true;如果调用进程与终端服务器控制台会话相关联,则为 false

属性

注解

此系统指标在终端服务环境中使用。

映射到SM_REMOTESESSION。 请参阅 GetSystemMetrics

XAML 属性使用方法

<object property=“{ SystemParameters.IsRemoteSession}”/>

适用于