Share via


VpnChannel.TerminateConnection(String) Method

Definition

Allows a VPN plugin to indicate an error message and terminate the connection attempt performed inside the IVpnPlugin.Connect method. Should not be called on reconnect cases.

public:
 virtual void TerminateConnection(Platform::String ^ message) = TerminateConnection;
void TerminateConnection(winrt::hstring const& message);
public void TerminateConnection(string message);
function terminateConnection(message)
Public Sub TerminateConnection (message As String)

Parameters

message
String

Platform::String

winrt::hstring

The text of the error message.

Windows requirements

App capabilities
networkingVpnProvider

Applies to