Dela via


VpnPacketBuffer Class

Definition

Used by the platform to manage a memory buffer. VpnPacketBuffer allows buffers to be chained together in a IVpnPacketBufferList object list to be sent or received in a specific order.

public ref class VpnPacketBuffer sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Networking.Vpn.IVpnPacketBufferFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
class VpnPacketBuffer final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Networking.Vpn.IVpnPacketBufferFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class VpnPacketBuffer final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Networking.Vpn.IVpnPacketBufferFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
public sealed class VpnPacketBuffer
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Networking.Vpn.IVpnPacketBufferFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class VpnPacketBuffer
Public NotInheritable Class VpnPacketBuffer
Inheritance
Object Platform::Object IInspectable VpnPacketBuffer
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
networkingVpnProvider

Remarks

Version history

Windows version SDK version Value added
1803 17134 TransportContext

Constructors

VpnPacketBuffer(VpnPacketBuffer, UInt32, UInt32)

Not used.

Properties

AppId

Gets the app ID representing the app that caused this packet to flow. This is present only on the first packet of a flow. The presence of this property indicates it is the first packet.

Buffer

Gets the memory buffer object, designed to contain packets of date to be sent or received as part of a IVpnPacketBufferList.

Status

Gets the status of VpnPacketBuffer. The status property may be used to report errors when manipulating the IVpnPacketBufferList.

TransportAffinity

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.

TransportContext

Gets or sets a transport context object, for example the name of a host or server.

Applies to