Gets or sets the authentication modes supported by the form
Namespace:
Novalys.VisualGuard.Security.WinFormAssembly: Novalys.VisualGuard.Security.WinForm (in Novalys.VisualGuard.Security.WinForm.dll) Version: 3.2.912.1 (3.2.912.01)
Syntax
| C# |
|---|
public VGAuthenticationMode SupportedAuthenticationModes { get; set; } |
| Visual Basic (Declaration) |
|---|
Public Property SupportedAuthenticationModes As 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.
CopyC#
CopyVB.NET
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()); }
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
| Exception | Condition |
|---|---|
| System..::.ArgumentException | The value is equal to None |
| System..::.NotSupportedException | One or more specified authentication mode are not supported by the repository. |