संपादित करें

इसके माध्यम से साझा किया गया


AuthenticationMode Enum

Definition

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

public enum class AuthenticationMode
public enum AuthenticationMode
type AuthenticationMode = 
Public Enum AuthenticationMode
Inheritance
AuthenticationMode

Fields

Name Value Description
Windows 0

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

ApplicationDefined 1

The WindowsFormsApplicationBase(AuthenticationMode) 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.

Remarks

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).

Applies to

See also