Click or drag to resize

VGCheckVersionEventArgs Class

Provides data for the CheckVersion event.
Inheritance Hierarchy
SystemObject
  SystemEventArgs
    Novalys.VisualGuard.SecurityVGCheckVersionEventArgs

Namespace:  Novalys.VisualGuard.Security
Assembly:  Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2018.1.720.18 (2018.1.0720.18)
Syntax
public class VGCheckVersionEventArgs : EventArgs

The VGCheckVersionEventArgs type exposes the following members.

Constructors
  NameDescription
Public methodVGCheckVersionEventArgs

Initializes a new instance of the VGCheckVersionEventArgs class with an action, the node it was performed upon, and the parent node.

Top
Properties
  NameDescription
Public propertyCancel
Allows to cancel the authentication or authorization process.
Public propertyVersion

Gets the version of the permissions of the application.

Top
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
Examples
This example display how to use the event CheckVersion to allow the user select a roles in the list of granted roles.
private void OnCheckVersion (object sender, VGCheckVersionEventArgs args)
{
    if (e.Version < new Version(1,2,0,0))
    {
        e.Cancel = true
    }
}
See Also