RemoteSystemConnectionRequest 类

定义

表示与特定远程系统 (设备) 通信的意向。

public ref class RemoteSystemConnectionRequest sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.System.RemoteSystems.IRemoteSystemConnectionRequestFactory, 196608, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class RemoteSystemConnectionRequest final
/// [Windows.Foundation.Metadata.Activatable(Windows.System.RemoteSystems.IRemoteSystemConnectionRequestFactory, 196608, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class RemoteSystemConnectionRequest final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.System.RemoteSystems.IRemoteSystemConnectionRequestFactory), 196608, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class RemoteSystemConnectionRequest
[Windows.Foundation.Metadata.Activatable(typeof(Windows.System.RemoteSystems.IRemoteSystemConnectionRequestFactory), 196608, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class RemoteSystemConnectionRequest
function RemoteSystemConnectionRequest(remoteSystem)
Public NotInheritable Class RemoteSystemConnectionRequest
继承
Object Platform::Object IInspectable RemoteSystemConnectionRequest
属性

Windows 要求

设备系列
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)
应用功能
remoteSystem

注解

此类的实例是从给定 的 RemoteSystem 对象构造的。 所有远程系统功能(例如远程启动或远程应用服务连接)都需要使用此对象来确定) 要连接到的系统 (设备。

版本历史记录

Windows 版本 SDK 版本 增值
1809 17763 CreateForApp
1809 17763 RemoteSystemApp
1903 18362 ConnectionToken
1903 18362 CreateFromConnectionToken
1903 18362 CreateFromConnectionTokenForUser

构造函数

RemoteSystemConnectionRequest(RemoteSystem)

初始化 RemoteSystemConnectionRequest 类的实例。

属性

ConnectionToken

获取一个令牌,该令牌保存 RemoteSystemConnectionRequest 的连接信息,以便以后可以重新连接。

RemoteSystem

表示应用要与之通信的远程系统 (设备) 。

RemoteSystemApp

表示应用要与之通信的远程应用程序。

方法

CreateForApp(RemoteSystemApp)

为远程系统上的特定应用程序初始化 RemoteSystemConnectionRequest 类的新实例。

CreateFromConnectionToken(String)

基于 ConnectionToken 返回 RemoteSystemConnectionRequest。

CreateFromConnectionTokenForUser(User, String)

基于 ConnectionToken 和特定 用户返回 RemoteSystemConnectionRequest。

适用于

另请参阅