WSHttpSecurity.Transport Propriété

Définition

Obtient un objet qui contient les paramètres de sécurité au niveau du transport pour cette liaison.

public:
 property System::ServiceModel::HttpTransportSecurity ^ Transport { System::ServiceModel::HttpTransportSecurity ^ get(); void set(System::ServiceModel::HttpTransportSecurity ^ value); };
public:
 property System::ServiceModel::HttpTransportSecurity ^ Transport { System::ServiceModel::HttpTransportSecurity ^ get(); };
public System.ServiceModel.HttpTransportSecurity Transport { get; set; }
public System.ServiceModel.HttpTransportSecurity Transport { get; }
member this.Transport : System.ServiceModel.HttpTransportSecurity with get, set
member this.Transport : System.ServiceModel.HttpTransportSecurity
Public Property Transport As HttpTransportSecurity
Public ReadOnly Property Transport As HttpTransportSecurity

Valeur de propriété

HttpTransportSecurity pour cette liaison.

La valeur par défaut inclut un ClientCredentialType de Windows et un ProxyCredentialType de None.

Exemples

Le code suivant affecte Windows au type d'informations d'identification du client.

// 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  

Remarques

Vous pouvez utiliser l'objet retourné par cette propriété pour définir les paramètres de sécurité de transport pour la liaison.

S’applique à