AuthenticationMode Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Fields
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. |
Windows | 0 | The WindowsFormsApplicationBase(AuthenticationMode) constructor initializes the principal for the application's main thread with the current user's Windows user information. |
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
Athugasemdir
https://aka.ms/ContentUserFeedback.
Væntanlegt: Á árinu 2024 munum við hætta með GitHub-mál sem ábendingaleið fyrir efni og skipta því út fyrir nýtt ábendingakerfi. Frekari upplýsingar er að finna hér:Senda inn og skoða endurgjöf fyrir