AuthenticationMode Enumeration


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Indicates how a Visual Basic application authenticates the user for the My.User object.

Namespace:   Microsoft.VisualBasic.ApplicationServices
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

Public Enumeration AuthenticationMode

Member nameDescription

The WindowsFormsApplicationBase constructor does not initialize the principal for the application's main thread. The application needs to initialize the principal for the application's main thread.


The WindowsFormsApplicationBase constructor initializes the principal for the application's main thread with the current user's Windows user information.

You can set the authentication mode for an application by passing one of this enumeration's values to the WindowsFormsApplicationBase constructor. For more information, see Extending the Visual Basic Application Model.

A Visual Basic application that uses the Visual Basic Application Model can specify whether it uses Windows authentication or custom authentication. You can also configure the authentication mode in the Visual Studio Integrated Development Environment. For more information, see Application Page, Project Designer (Visual Basic).

.NET Framework
Available since 2.0
Return to top