Gets or sets the authentication modes supported by the form

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

Syntax

C#
public VGAuthenticationMode SupportedAuthenticationModes { get; set; }
Visual Basic
Public Property SupportedAuthenticationModes As VGAuthenticationMode
	Get
	Set

Property Value

Type: VGAuthenticationMode

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.

Examples

The following example displays how to allow the form to display only Visual Guard authentication mode.
C# Copy imageCopy
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 Copy imageCopy
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

Exceptions

ExceptionCondition
System..::..ArgumentExceptionThe value is equal to None
System..::..NotSupportedExceptionOne or more specified authentication mode are not supported by the repository.

See Also