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