VpnChannel.Stop Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Destroys a previously established VPN channel object. Disassociates and closes the outerTunnelTransport connection to the VPN server.
public:
virtual void Stop() = Stop;
void Stop();
public void Stop();
function stop()
Public Sub Stop ()
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.