IAuthenticationExtension2.LogonUser(String, String, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
為與該憑證相關的使用者建立登入會話。
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
參數
- userName
- String
與證書相關的名稱。
- password
- String
密碼與密碼相關聯。
- authority
- String
Optional. 用來驗證使用者的特定權限(例如 Windows 網域)。
傳回
true若使用者成功認證;否則,。 false