Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

AuthenticationMode Enumeration

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)

'Declaration
Public Enumeration AuthenticationMode

Member nameDescription
ApplicationDefinedThe 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.
WindowsThe 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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft