共用方式為


VpnPacketBufferList 類別

定義

用來管理 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)
繼承
Object Platform::Object IInspectable VpnPacketBufferList
屬性
實作

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 物件。

適用於

另請參閱