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

适用于