VpnChannel.CurrentRequestTransportContext 屬性

定義

取得使用中的傳輸內容物件,例如主機或伺服器的名稱。

public:
 property Platform::Object ^ CurrentRequestTransportContext { Platform::Object ^ get(); };
IInspectable CurrentRequestTransportContext();
public object CurrentRequestTransportContext { get; }
var object = vpnChannel.currentRequestTransportContext;
Public ReadOnly Property CurrentRequestTransportContext As Object

屬性值

Object

Platform::Object

IInspectable

使用中的傳輸內容物件,例如主機或伺服器的名稱。 如果屬性是在回呼外部存取,則此值為 null (例如,在重新連線的情況下)。

Windows 需求

裝置系列
Windows 10, version 1803 (已於 10.0.17134.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v6.0 引進)
應用程式功能
networkingVpnProvider

適用於