RemoteSystemConnectionRequest 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示與特定遠端系統通訊的意圖, (裝置) 。
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
- 繼承
- 屬性
Windows 需求
裝置系列 |
Windows 10 Anniversary Edition (已於 10.0.14393.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v3.0 引進)
|
應用程式功能 |
remoteSystem
|
備註
這個類別的實例是從指定的 RemoteSystem 物件建構而來。 所有遠端系統功能,例如遠端啟動或遠端 App Service 連線,都需要使用此物件來判斷要連線的系統 (裝置) 。
版本歷程記錄
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。 |