VpnDomainNameInfo Class

Definition

Specifies the name policy for a specific namespace. It can specify the DNS servers to use for name resolution of the namespace, the web proxies to use when connecting to the namespace, or whether it should be exempted from the policy itself.

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

Remarks

Version history

Windows version SDK version Value added
1607 14393 WebProxyUris

Constructors

VpnDomainNameInfo(String, VpnDomainNameType, IIterable<HostName>, IIterable<HostName>)

Allows the VPN plug-in to construct this object to be added to a VpnDomainNameAssignment object.

Properties

DnsServers

Gets a list of DNS servers to perform DNS resolution against when resolving a name in the namespace.

DomainName

Gets or sets the domain name. This could be an FQDN, or a DNS suffix.

DomainNameType

Gets or sets whether the namespace in question is a FQDN, or a DNS suffix.

WebProxyServers

Gets a list of web proxy servers to be used when connecting to a resource in the specified namespace.

WebProxyUris

Gets a web proxy URI to be used when connecting to a resource in the specified namespace. This value differs from WebProxyServers in that the URI can be specify a custom port number, while the WebProxyServers value assumes port 80.

Note that even though the property name is plural, the returned list of URIs never has more than one element.

Applies to