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 的状态。 status 属性可用于在操作 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 对象。

适用于

另请参阅