AuthenticationMode 列舉

定義

表示 Visual Basic 應用程式如何驗證 My.User 物件的使用者。

public enum class AuthenticationMode
public enum AuthenticationMode
type AuthenticationMode = 
Public Enum AuthenticationMode
繼承
AuthenticationMode

欄位

ApplicationDefined 1

WindowsFormsApplicationBase(AuthenticationMode) 建構函式不會初始化應用程式之主執行緒的主體。 應用程式需要初始化應用程式之主執行緒的主體。

Windows 0

WindowsFormsApplicationBase(AuthenticationMode) 建構函式會用目前使用者的 Windows 使用者資訊,初始化應用程式之主執行緒的主體。

備註

您可以將其中一個列舉的值傳遞至 WindowsFormsApplicationBase 建構函式,以設定應用程式的驗證模式。 如需詳細資訊,請參閱 擴充Visual Basic應用程式模型

使用 Visual Basic 應用程式模型的 Visual Basic 應用程式可以指定它是否使用 Windows 驗證 或自定義驗證。 您也可以在 Visual Studio 集成開發環境中設定驗證模式。 如需詳細資訊,請參閱 Application Page, Project Designer (Visual Basic)

適用於

另請參閱