WSHttpSecurity.Transport 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取一个包含此绑定的传输级安全性设置的对象。
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
注解
你可以使用此属性返回的对象设置此绑定的传输安全设置。