IChannelCredentials.SetWindowsCredential 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置 Windows 凭据。
public:
void SetWindowsCredential(System::String ^ domain, System::String ^ userName, System::String ^ password, int impersonationLevel, bool allowNtlm);
public void SetWindowsCredential (string domain, string userName, string password, int impersonationLevel, bool allowNtlm);
abstract member SetWindowsCredential : string * string * string * int * bool -> unit
Public Sub SetWindowsCredential (domain As String, userName As String, password As String, impersonationLevel As Integer, allowNtlm As Boolean)
参数
- domain
- String
域。
- userName
- String
用户名。
- password
- String
Password。
- impersonationLevel
- Int32
模拟级别。
- allowNtlm
- Boolean
允许使用 NTLM 身份验证方案。