ICredentialsByHost.GetCredential(String, Int32, String) Méthode

Définition

Retourne les informations d’identification de l’hôte, du port et du protocole d’authentification spécifiés.

public:
 System::Net::NetworkCredential ^ GetCredential(System::String ^ host, int port, System::String ^ authenticationType);
public System.Net.NetworkCredential GetCredential (string host, int port, string authenticationType);
public System.Net.NetworkCredential? GetCredential (string host, int port, string authenticationType);
abstract member GetCredential : string * int * string -> System.Net.NetworkCredential
Public Function GetCredential (host As String, port As Integer, authenticationType As String) As NetworkCredential

Paramètres

host
String

Ordinateur hôte qui authentifie le client.

port
Int32

Port de hostavec lequel le client doit communiquer.

authenticationType
String

Protocole d’authentification.

Retours

NetworkCredential de l’hôte, du port et du protocole d’authentification spécifiés, ou null si aucune information d’identification n’est disponible pour l’hôte, le port et le protocole d’authentification spécifiés.

Remarques

La valeur de authType correspond à la IAuthenticationModule.AuthenticationType propriété .

S’applique à