Allows to check if the version of the repository permissions is compatible with the version of the application.

Namespace: Novalys.VisualGuard.Security
Assembly: Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2016.0.105.16 (2016.0.105.16)

Syntax

C#
public static event VGCheckVersionEventHandler CheckVersion
Visual Basic
Public Shared Event CheckVersion As VGCheckVersionEventHandler

Value

Type: Novalys.VisualGuard.Security..::..VGCheckVersionEventHandler

Remarks

Occurs after the authentication and before loading permissions.

Examples

This example display how to use the event CheckVersion to allow the user select a roles in the list of granted roles.
Visual Basic Copy imageCopy
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# Copy imageCopy
private void OnCheckVersion (object sender, VGCheckVersionEventArgs args)
{
    if (e.Version < new Version(1,2,0,0))
    {
        e.Cancel = true
    }
}

See Also