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: 2019.1.831.19 (2019.1.0831.19)
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
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(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