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 である WindowsProxyCredentialType である 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  

注釈

このプロパティによって返されるオブジェクトを使用して、バインドのトランスポート セキュリティ設定を設定できます。

適用対象