Share via


VpnDomainNameInfo Constructor

Definition

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

public:
 VpnDomainNameInfo(Platform::String ^ name, VpnDomainNameType nameType, IIterable<HostName ^> ^ dnsServerList, IIterable<HostName ^> ^ proxyServerList);
 VpnDomainNameInfo(winrt::hstring const& name, VpnDomainNameType const& nameType, IIterable<HostName> const& dnsServerList, IIterable<HostName> const& proxyServerList);
public VpnDomainNameInfo(string name, VpnDomainNameType nameType, IEnumerable<HostName> dnsServerList, IEnumerable<HostName> proxyServerList);
function VpnDomainNameInfo(name, nameType, dnsServerList, proxyServerList)
Public Sub New (name As String, nameType As VpnDomainNameType, dnsServerList As IEnumerable(Of HostName), proxyServerList As IEnumerable(Of HostName))

Parameters

name
String

Platform::String

winrt::hstring

The domain name. This could be an FQDN, or a DNS suffix.

nameType
VpnDomainNameType

An enum value indicating whether the namespace in question is a FQDN, or a DNS suffix.

dnsServerList

IIterable<HostName>

IEnumerable<HostName>

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

proxyServerList

IIterable<HostName>

IEnumerable<HostName>

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

Windows requirements

App capabilities
networkingVpnProvider

Applies to