Share via


WSHttpSecurity.Transport Proprietà

Definizione

Consente di ottenere un oggetto che contiene le impostazioni di sicurezza a livello di trasporto relative a questa associazione.

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

Valore della proprietà

Classe HttpTransportSecurity di questa associazione.

Il valore predefinito prevede quanto segue: proprietà ClientCredentialType impostata su Windows e proprietà ProxyCredentialType impostata su None.

Esempio

Nel codice seguente viene mostrato come impostare il tipo di credenziale client su Windows.

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

Commenti

È possibile utilizzare l'oggetto restituito da questa proprietà per configurare le impostazioni di sicurezza del trasporto relative all'associazione.

Si applica a