WSHttpSecurity.Transport Свойство

Определение

Возвращает объект, содержащий параметры безопасности транспортного уровня для этой привязки.

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

Значение свойства

Объект HttpTransportSecurity для этой привязки.

Значение по умолчанию содержит ClientCredentialType для Windows и ProxyCredentialType для None.

Примеры

В следующем коде показано задание типа учетных данных клиента для 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  

Комментарии

Можно использовать объект, возвращаемый этим свойством, для задания параметров безопасности транспорта для привязки.

Применяется к