AuthenticationMode 枚举

定义

指示 Visual Basic 应用程序如何为 My.User 对象对用户进行身份验证。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
继承
AuthenticationMode

字段

ApplicationDefined 1

WindowsFormsApplicationBase(AuthenticationMode) 构造函数不初始化该应用程序主线程的主体。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.

Windows 0

WindowsFormsApplicationBase(AuthenticationMode) 构造函数使用当前用户的 Windows 用户信息初始化该应用程序主线程的主体。The WindowsFormsApplicationBase(AuthenticationMode) constructor initializes the principal for the application's main thread with the current user's Windows user information.

注解

可以通过将此枚举的一个值传递给WindowsFormsApplicationBase构造函数来设置应用程序的身份验证模式。You can set the authentication mode for an application by passing one of this enumeration's values to the WindowsFormsApplicationBase constructor. 有关详细信息, 请参阅扩展 Visual Basic 应用程序模型For more information, see Extending the Visual Basic Application Model.

使用 Visual Basic 应用程序模型的 Visual Basic 应用程序可以指定该应用程序是使用 Windows 身份验证还是使用自定义身份验证。A Visual Basic application that uses the Visual Basic Application Model can specify whether it uses Windows authentication or custom authentication. 你还可以在 Visual Studio 集成开发环境中配置身份验证模式。You can also configure the authentication mode in the Visual Studio Integrated Development Environment. 有关详细信息,请参阅 Application Page, Project Designer (Visual Basic)(应用程序页、项目设计器 (Visual Basic)。For more information, see Application Page, Project Designer (Visual Basic).

适用于

另请参阅