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)

public enum 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.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft