Share via


IVpnDomainNameInfoFactory.CreateVpnDomainNameInfo Method

Definition

Creates a VpnDomainNameInfo object.

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

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.

Returns

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.

Windows requirements

App capabilities
networkingVpnProvider

Applies to