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 对象。

适用于

另请参阅