WebHttpSecurity.Transport 属性

定义

获取一个包含此绑定的传输级安全性设置的对象。

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

属性值

此绑定的 HttpTransportSecurity

默认值设置为 ClientCredentialTypeNoneProxyCredentialTypeNoneRealm = ""。

注解

使用此属性返回的 HttpTransportSecurity 对象设置 WebHttpBinding 的传输安全参数。

如果 Transport 方法指定了 TransportCredentialOnlyWebHttpBinding(WebHttpSecurityMode) 值,则 Transport 属性提供的设置就会对服务终结点有效。

如果 TransportCredentialOnly 方法指定了 WebHttpBinding(WebHttpSecurityMode) 值,则 Transport 属性提供的设置就会对服务终结点有效。 WebHttpSecurityMode 的值只能在将其作为显式参数的 WebHttpBinding 构造函数中设置,并且在创建绑定实例之后无法再次设置其值。

适用于