ICredentialsByHost.GetCredential(String, Int32, String) ICredentialsByHost.GetCredential(String, Int32, String) ICredentialsByHost.GetCredential(String, Int32, String) ICredentialsByHost.GetCredential(String, Int32, String) Method

Définition

Retourne les informations d’identification de l’hôte, du port et du protocole d’authentification spécifiés.Returns the credential for the specified host, port, and authentication protocol.

public:
 System::Net::NetworkCredential ^ GetCredential(System::String ^ host, int port, System::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 String String String

Ordinateur hôte qui authentifie le client.The host computer that is authenticating the client.

port
Int32 Int32 Int32 Int32

Port de hostavec lequel le client doit communiquer.The port on host that the client will communicate with.

authenticationType
String String String String

Protocole d’authentification.The authentication protocol.

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.A NetworkCredential for the specified host, port, and authentication protocol, or null if there are no credentials available for the specified host, port, and authentication protocol.

Remarques

La valeur de authType correspond à la IAuthenticationModule.AuthenticationType propriété.The value of authType corresponds to the IAuthenticationModule.AuthenticationType property.

S’applique à