Share via


HttpTransportSecurity.ClientCredentialType Vlastnost

Definice

Získá nebo nastaví typ přihlašovacích údajů klienta pro ověřování.

public:
 property System::ServiceModel::HttpClientCredentialType ClientCredentialType { System::ServiceModel::HttpClientCredentialType get(); void set(System::ServiceModel::HttpClientCredentialType value); };
public System.ServiceModel.HttpClientCredentialType ClientCredentialType { get; set; }
member this.ClientCredentialType : System.ServiceModel.HttpClientCredentialType with get, set
Public Property ClientCredentialType As HttpClientCredentialType

Hodnota vlastnosti

Jedna z hodnot výčtu, která určuje typ přihlašovacích údajů klienta pro ověřování.

Výjimky

Nastavení vlastnosti na nedefinovanou hodnotu.

Příklady

Následující kód ukazuje, jak získat přístup k této vlastnosti a jak ji nastavit.

// The code uses a shortcut to specify the security mode to Transport.
WSHttpBinding b = new WSHttpBinding(SecurityMode.Transport);
b.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows;
' The code uses a shortcut to specify the security mode to Transport.
Dim b As WSHttpBinding = New WSHttpBinding(SecurityMode.Transport)
b.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows

Poznámky

Vrácená hodnota může být jeden z následujících členů výčtu:

Platí pro