Udostępnij za pośrednictwem


VpnTrafficFilter Class

Definition

Defines the traffic filtering properties (including per app VPN). A description of the type of network traffic that will be allowed over the VPN connection, such as a specific application and protocol allowed for the connection.

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
Inheritance
Object Platform::Object IInspectable VpnTrafficFilter
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
networkingVpnProvider

Constructors

VpnTrafficFilter(VpnAppId)

Allows a VPN plug-in or VPN management app to create a traffic filter.

Properties

AppClaims

Gets a security descriptor specifying the set of checks of claims a process must have to be allowed by this traffic filter.

AppId

Gets or sets the ID of the app that is allowed by this traffic filter.

LocalAddressRanges

Gets a list of the local address ranges that are allowed by this traffic filter.

LocalPortRanges

Gets a list of the local port ranges that are allowed by this traffic filter. Specially useful for identifying SMB.

Protocol

Gets or sets the IP protocol that is allowed by this traffic filter.

RemoteAddressRanges

Gets a list of the remote address ranges that are allowed by this traffic filter.

RemotePortRanges

Gets a list of the remote port ranges that are allowed by this traffic filter.

RoutingPolicyType

Gets or sets whether the apps allowed by this traffic filter are force tunneled through the VPN interface, or whether they are split tunneled and allowed to talk through other interfaces.

Applies to