iOS Guides | Samples

MonoTouch.NetworkExtension.NEVpnConnection Class

Represents a Virtual Private Network connection

See Also: NEVpnConnection

Syntax

[MonoTouch.Foundation.Register("NEVPNConnection", true)]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 8, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.MacOSX, 10, 10, MonoTouch.ObjCRuntime.PlatformArchitecture.Arch64, null)]
public class NEVpnConnection : NSObject

Related content

Requirements

Namespace: MonoTouch.NetworkExtension
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.NetworkExtension.NEVpnConnection are listed below.

See Also: NSObject

Public Constructors

Default constructor, initializes a new instance of this class.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
ConnectedDateNSDate. Gets the date and time when the VPN connected.
[read-only]
ManagerNEVpnManager. Gets the VPN manager.
[read-only]
StatusNEVpnStatus. Gets the VPN connection status.
[read-only]
static
StatusDidChangeNotificationNSString. Notification constant for StatusDidChange

Public Methods

StartVpnTunnel(out NSError) : Boolean
Begins connecting the VPN.
StartVpnTunnel(NEVpnConnectionStartOptions, out NSError) : Boolean
Begins connecting the VPN.
StopVpnTunnel()
Begins disconnecting the VPN.