Partager via


IChannelCredentials.SetWindowsCredential Méthode

Définition

Définit les informations d'identification 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)

Paramètres

domain
String

Domaine.

userName
String

Nom d’utilisateur.

password
String

Password.

impersonationLevel
Int32

Niveau d'emprunt d'identité.

allowNtlm
Boolean

Autorisez le schéma d'authentification NTLM.

S’applique à