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* 方法中指定的傳輸物件。 這允許在主要與選擇性傳輸之間進行選取。 |
TransportContext |
取得或設定傳輸內容物件,例如主機或伺服器的名稱。 |
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應