Share via


VpnChannelConfiguration.ServerServiceName Property

Definition

Gets the service name of the VPN server listening for remote access connections.

public:
 property Platform::String ^ ServerServiceName { Platform::String ^ get(); };
winrt::hstring ServerServiceName();
public string ServerServiceName { get; }
var string = vpnChannelConfiguration.serverServiceName;
Public ReadOnly Property ServerServiceName As String

Property Value

String

Platform::String

winrt::hstring

The service name of the VPN server listening for remote access connections. Also known as the VPN server port.

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