SystemParameters.IsRemoteSession 属性    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取一个值,该值指示调用进程是否与终端服务客户端会话相关联。
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}”/>