VpnPacketBufferList 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
用來管理 VpnPacketBuffer 物件。
public ref class VpnPacketBufferList sealed : IIterable<VpnPacketBuffer ^>
/// [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 VpnPacketBufferList final : IIterable<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)]
public sealed class VpnPacketBufferList : IEnumerable<VpnPacketBuffer>
Public NotInheritable Class VpnPacketBufferList
Implements IEnumerable(Of VpnPacketBuffer)
- 繼承
- 屬性
- 實作
Windows 需求
裝置系列 |
Windows 10 (已於 10.0.10240.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
|
應用程式功能 |
networkingVpnProvider
|
屬性
Size |
取得 IVpnPacketBufferlist 物件中 IVpnPacketBuffer 對象的數目。 |
Status |
取得 VpnPacketBuffer的狀態。 操作 IVpnPacketBufferList 時,狀態屬性可用來報告錯誤。 |
方法
AddAtBegin(VpnPacketBuffer) |
將新的 IVpnPacketBuffer 物件新增至 IVpnPacketBufferList開頭。 |
Append(VpnPacketBuffer) |
將新的 IVpnPacketBuffer 物件新增至 IVpnPacketBufferList結尾。 |
Clear() |
從 IVpnPacketBufferList移除所有 IVpnPacketBuffer 物件。 |
First() |
提供 First 參數的存取權。 此 SDK 程式設計元素是在 Windows PowerShell 3.0 中引進的。 |
RemoveAtBegin() |
在 IVpnPacketBufferList開頭移除 IVpnPacketBuffer 物件。 |
RemoveAtEnd() |
IVpnPacketBufferList結尾移除 IVpnPacketBuffer 物件。 |