VpnChannelConfiguration.ServerHostNameList Property

Definition

Gets the server hostname of the VPN server to which the VPN plug-in should connect.

public:
 property IVectorView<HostName ^> ^ ServerHostNameList { IVectorView<HostName ^> ^ get(); };
IVectorView<HostName> ServerHostNameList();
public IReadOnlyList<HostName> ServerHostNameList { get; }
var iVectorView = vpnChannelConfiguration.serverHostNameList;
Public ReadOnly Property ServerHostNameList As IReadOnlyList(Of HostName)

Property Value

The server hostname of the VPN server to which the VPN plug-in should connect.

Windows requirements

App capabilities
networkingVpnProvider

Remarks

Note

Any call to this API outside of a connected VPN plug-in will fail, as activity and interactions between the VPN plug-in and the system are controlled by the VPN profile. There can only be one VPN profile per process because the VPN plug-in only has one VPN profile mapped to it, and if a caller were to create more than one profile object, they would all refer to the same settings.

Applies to