Visual Guard Class Library Documentation

VGCheckVersionEventArgs Class

Provides data for the CheckVersion event.

For a list of all members of this type, see VGCheckVersionEventArgs Members.

System.Object
   EventArgs
      VGCheckVersionEventArgs

public class VGCheckVersionEventArgs : EventArgs

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Example

This example display how to use the event CheckVersion to allow the user select a roles in the list of granted roles.

[Visual Basic]
Private Sub OnCheckVersion(ByVal sender As Object, ByVal e As VGCheckVersionEventArgs)
    If e.Version < new Version(1,2,0,0) Then
        e.Cancel = true
    End If
End Sub
[C#]
private void OnCheckVersion (object sender, VGCheckVersionEventArgs args)
{
    if (e.Version < new Version(1,2,0,0))
    {
        e.Cancel = true
    }
}

Requirements

Namespace: Novalys.VisualGuard.Security

Assembly: Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll)

See Also

VGCheckVersionEventArgs Members | Novalys.VisualGuard.Security Namespace