IAuthenticationExtension2.LogonUser(String, String, String) Method
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.
Creates a logon session for the user associated with the given credentials.
public:
bool LogonUser(System::String ^ userName, System::String ^ password, System::String ^ authority);
public bool LogonUser (string userName, string password, string authority);
abstract member LogonUser : string * string * string -> bool
Public Function LogonUser (userName As String, password As String, authority As String) As Boolean
Parameters
- userName
- String
The name associated with the credentials.
- password
- String
The password associated with the password.
- authority
- String
Optional. The specific authority to use to authenticate a user (for example, a Windows domain).
Returns
true
if the user successfully authenticated; otherwise, false
.