VpnPacketBuffer.TransportAffinity 属性

定义

获取或设置一个数字,该数字指定要在 VpnChannel:Start* 方法中指定的传输对象。 这允许在主传输和可选传输之间进行选择。

public:
 property unsigned int TransportAffinity { unsigned int get(); void set(unsigned int value); };
uint32_t TransportAffinity();

void TransportAffinity(uint32_t value);
public uint TransportAffinity { get; set; }
var uInt32 = vpnPacketBuffer.transportAffinity;
vpnPacketBuffer.transportAffinity = uInt32;
Public Property TransportAffinity As UInteger

属性值

UInt32

unsigned int

uint32_t

值为 0 将此数据包设置为通过主传输发送。 值为 1 将此数据包设置为通过可选传输发送。

Windows 要求

应用功能
networkingVpnProvider

适用于