Share via


VpnPacketBuffer.TransportAffinity Property

Definition

Gets or sets a number specifying which transport object to use as specified in the VpnChannel:Start* methods. This allows the selection between the main and the optional transports.

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

Property Value

UInt32

unsigned int

uint32_t

A value of 0 sets this packet to be sent over the main transport. A value of 1 sets this packet to be sent over the optional transport.

Windows requirements

App capabilities
networkingVpnProvider

Applies to