Share via


VpnChannel.Id Property

Definition

Gets the unique instance ID of a VPN channel. This can be used to simplify demuxing operations between two VPN connection instances.

public:
 property unsigned int Id { unsigned int get(); };
uint32_t Id();
public uint Id { get; }
var uInt32 = vpnChannel.id;
Public ReadOnly Property Id As UInteger

Property Value

UInt32

unsigned int

uint32_t

A number representing the unique ID of the VPN channel.

Windows requirements

App capabilities
networkingVpnProvider

Remarks

Note

Any call to this API outside of a connected VPN plug-in will fail, as activity and interactions between the VPN plug-in and the system are controlled by the VPN profile. There can only be one VPN profile per process because the VPN plug-in only has one VPN profile mapped to it, and if a caller were to create more than one profile object, they would all refer to the same settings.

Applies to