VpnPacketBuffer 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
平臺用來管理記憶體緩衝區。 VpnPacketBuffer 允許以特定順序傳送或接收 IVpnPacketBufferList 物件清單,將緩衝區鏈結在一起。
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
- 繼承
- 屬性
Windows 需求
裝置系列 |
Windows 10 (已於 10.0.10240.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
|
應用程式功能 |
networkingVpnProvider
|
備註
版本歷程記錄
Windows 版本 | SDK 版本 | 增加值 |
---|---|---|
1803 | 17134 | TransportContext |
建構函式
VpnPacketBuffer(VpnPacketBuffer, UInt32, UInt32) |
未使用。 |
屬性
AppId |
取得應用程式標識碼,表示造成此封包流動的應用程式。 這隻會出現在流程的第一個封包上。 這個屬性的存在表示它是第一個封包。 |
Buffer |
取得記憶體緩衝區物件,其設計目的是要包含在 IVpnPacketBufferList |
Status |
取得 VpnPacketBuffer的狀態。 操作 IVpnPacketBufferList 時,狀態屬性可用來報告錯誤。 |
TransportAffinity |
取得或設定數位,指定 VpnChannel:Start* 方法中所指定要使用的傳輸物件。 這允許在main和選擇性傳輸之間進行選取。 |
TransportContext |
取得或設定傳輸內容物件,例如主機或伺服器的名稱。 |