ICredentialsByHost.GetCredential(String, Int32, String) Methode

Definitie

Retourneert de referentie voor de opgegeven host, poort en verificatieprotocol.

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

Parameters

host
String

De hostcomputer die de client authenticeert.

port
Int32

De poort op host die de client communiceert.

authenticationType
String

Het verificatieprotocol.

Retouren

A NetworkCredential voor het opgegeven host-, poort- en verificatieprotocol, of null als er geen referenties beschikbaar zijn voor de opgegeven host, poort en verificatieprotocol.

Opmerkingen

De waarde komt authType overeen met de IAuthenticationModule.AuthenticationType eigenschap.

Van toepassing op