共用方式為


VpnTrafficFilter 類別

定義

定義流量篩選屬性(包括每個應用程式 VPN)。 透過 VPN 連線允許的網路流量類型描述,例如允許連線的特定應用程式和通訊協定。

public ref class VpnTrafficFilter sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Networking.Vpn.IVpnTrafficFilterFactory, 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 VpnTrafficFilter 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.IVpnTrafficFilterFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class VpnTrafficFilter final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Networking.Vpn.IVpnTrafficFilterFactory), 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 VpnTrafficFilter
[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.IVpnTrafficFilterFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class VpnTrafficFilter
Public NotInheritable Class VpnTrafficFilter
繼承
Object Platform::Object IInspectable VpnTrafficFilter
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
應用程式功能
networkingVpnProvider

建構函式

VpnTrafficFilter(VpnAppId)

允許 VPN 外掛程式或 VPN 管理應用程式建立流量篩選。

屬性

AppClaims

取得安全性描述元,這個流量篩選必須允許進程必須允許的宣告檢查集。

AppId

取得或設定此流量篩選所允許之應用程式的標識碼。

LocalAddressRanges

取得此流量篩選允許的本機位址範圍清單。

LocalPortRanges

取得此流量篩選所允許的本機埠範圍清單。 特別適合用來識別SMB。

Protocol

取得或設定此流量篩選所允許的IP通訊協定。

RemoteAddressRanges

取得此流量篩選允許的遠端位址範圍清單。

RemotePortRanges

取得此流量篩選所允許的遠端埠範圍清單。

RoutingPolicyType

取得或設定此流量篩選器允許的應用程式是否透過 VPN 介面進行強制通道,或它們是否經過分割通道,並允許透過其他介面進行交談。

適用於