Visual Guard Class Library Documentation

VGLoginForm.SupportedAuthenticationModes Property

Gets or sets the authentication modes supported by the form

public VGAuthenticationMode SupportedAuthenticationModes {get; set;}

Remarks

By default the value is equal to the modes supported by the repository.

if you indicate that the dialog box supports only VisualGuard mode. the authentication combobox is not displayed.

Exceptions

Exception TypeCondition
ArgumentExceptionThe value is equal to None
NotSupportedExceptionOne or more specified authentication mode are not supported by the repository.

Example

The following example displays how to allow the form to display only Visual Guard authentication mode.

[C#]
Novalys.VisualGuard.Security.WinForm.VGLoginForm login = new Novalys.VisualGuard.Security.WinForm.VGLoginForm();
form.SupportedAuthenticationModes = Novalys.VisualGuard.Security.WinForm.VGAuthenticationMode.VisualGuard;
if (login.ShowDialog() == DialogResult.OK)
{
    login.Dispose();
    Application.Run(new MDIForm());
}
[Visual Basic]
Dim login As New Novalys.VisualGuard.Security.WinForm.VGLoginForm
form.SupportedAuthenticationModes = Novalys.VisualGuard.Security.WinForm.VGAuthenticationMode.VisualGuard;
If login.ShowDialog() = DialogResult.OK Then
    login.Dispose()
    Application.Run(New MDIForm)
End If

See Also

VGLoginForm Class | Novalys.VisualGuard.Security.WinForm Namespace