Udostępnij przez


ICredentialsByHost.GetCredential(String, Int32, String) Metoda

Definicja

Zwraca poświadczenie dla określonego hosta, portu i protokołu uwierzytelniania.

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

Parametry

host
String

Komputer hosta, który uwierzytelnia klienta.

port
Int32

Port na host tym kliencie będą komunikować się.

authenticationType
String

Protokół uwierzytelniania.

Zwraca

A NetworkCredential dla określonego hosta, portu i protokołu uwierzytelniania lub null jeśli nie ma poświadczeń dostępnych dla określonego hosta, portu i protokołu uwierzytelniania.

Uwagi

Wartość odpowiada authTypeIAuthenticationModule.AuthenticationType właściwości .

Dotyczy