Back to product page

Create method


Creates new devVPN class instance.

Syntax

  • C#
  • C++
  • VB.NET
IntPtr devVPN.Create();
The Create() syntax has these parts:
Return valueReference to new created CVPN instance.

static CVPN *CVPN::Create(void);
The Create() syntax has these parts:
Return valueReference to new created CVPN instance.

Function VPN_Create() As IntPtr
The Create() syntax has these parts:
Return valueReference to new created CVPN instance.

Remarks

This is a static method that creates new instance of devVPN. After instance is successfully obtained and used, you should destroy it using Destroy method.

You should not delete the instance by yourself. Always use Destroy method instead.

Make sure you initialized the library first, by calling libInit function!

Code sample

  • C++

Platforms

Windows
Mac OSX
Linux
BSD
iPhone IOS