Back to product page

State property


Returns current devVPN state.

Type

States enumeration.

Syntax

  • C#
  • C++
  • VB.NET
int devVPN.GetState(IntPtr Handle);
The State(Handle) syntax has these parts:
HandleReference to the devVPN instance.
Return valueCurrent state from States enumeration.

States State;
The State() syntax has these parts:
Return valueCurrent state.

Function VPN_GetState(ByVal Handle As IntPtr) As Integer
The State(Handle) syntax has these parts:
HandleReference to the devVPN instance.
Return valueCurrent state from States enumeration.

Remarks

State property returns current devVPN state. If devVPN is completely idle, State will hold StateStopped value. As soon as devVPN starts with some activity, StateChange event will fire where you can keep track on devVPN's behavior.

Platforms

Windows
Mac OSX
Linux
BSD
iPhone IOS