NEVpnConnection.StartVpnTunnel 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.
Overloads
StartVpnTunnel(NSError) |
Begins connecting the VPN. |
StartVpnTunnel(NEVpnConnectionStartOptions, NSError) |
Begins connecting the VPN. |
StartVpnTunnel(NSError)
Begins connecting the VPN.
[Foundation.Export("startVPNTunnelAndReturnError:")]
public virtual bool StartVpnTunnel (out Foundation.NSError error);
abstract member StartVpnTunnel : -> bool
override this.StartVpnTunnel : -> bool
Parameters
- error
- NSError
Returns
- Attributes
Applies to
StartVpnTunnel(NEVpnConnectionStartOptions, NSError)
Begins connecting the VPN.
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public bool StartVpnTunnel (NetworkExtension.NEVpnConnectionStartOptions options, out Foundation.NSError error);
member this.StartVpnTunnel : NetworkExtension.NEVpnConnectionStartOptions * -> bool
Parameters
- options
- NEVpnConnectionStartOptions
- error
- NSError
Returns
- Attributes