WebHttpBinding.Security 属性

定义

获取与此绑定一起使用的安全设置。

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

属性值

WebHttpSecurity

与此绑定一起使用的 WebHttpSecurity。 默认值是 None

注解

若要使用非默认的安全类型,请使用 WebHttpBinding(WebHttpSecurityMode) 构造函数。

备注

如果您将此属性设置为 TransportCredentialOnly 且正在使用 HTTP,请注意将通过网络在纯文本中发送凭据。

适用于