WebHttpSecurity WebHttpSecurity WebHttpSecurity WebHttpSecurity Class

定义

指定可用于配置为接收 HTTP 请求的服务终结点的安全类型。Specifies the types of security available to a service endpoint configured to receive HTTP requests.

public ref class WebHttpSecurity sealed
public sealed class WebHttpSecurity
type WebHttpSecurity = class
Public NotInheritable Class WebHttpSecurity
继承
WebHttpSecurityWebHttpSecurityWebHttpSecurityWebHttpSecurity

注解

WebHttpSecurity 为用 T:System.ServiceModel.WebHttpBindingWebHttpBinding 配置的终结点提供安全要求。WebHttpSecurity provides the security requirements for an endpoint configured with a WebHttpBinding.

如果 Transport 方法指定了 WebHttpBinding(WebHttpSecurityMode) 值,则 Transport 属性提供的设置就会对服务终结点有效。If the Transport value is specified by the WebHttpBinding(WebHttpSecurityMode) method, then the settings provided by the Transport property become effective for the service endpoint. WebHttpSecurityMode 的值只能在将其作为显式参数的 WebHttpBinding 构造函数中设置,并且在创建绑定实例之后无法再次设置其值。The value of WebHttpSecurityMode can only be set in the WebHttpBinding constructor that takes it as an explicit parameter and its value cannot be set again after the binding instance is created.

构造函数

WebHttpSecurity() WebHttpSecurity() WebHttpSecurity() WebHttpSecurity()

创建 WebHttpSecurity 类的新实例。Creates a new instance of the WebHttpSecurity class.

属性

Mode Mode Mode Mode

获取或设置使用 WebHttpBinding 配置为接收 HTTP 请求的终结点所使用的安全模式。Gets or sets the mode of security that is used by an endpoint configured to receive HTTP requests with a WebHttpBinding.

Transport Transport Transport Transport

获取一个包含此绑定的传输级安全性设置的对象。Gets an object that contains the transport-level security settings for this binding.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
ShouldSerializeMode() ShouldSerializeMode() ShouldSerializeMode() ShouldSerializeMode()

指定 Mode 属性是否已更改,不再是默认值并应对其进行序列化。Specifies whether the Mode property has changed from its default and should be serialized. 它用于进行 XAML 集成。This is used for XAML integration.

ShouldSerializeTransport() ShouldSerializeTransport() ShouldSerializeTransport() ShouldSerializeTransport()

返回一个值,该值指示 Transport 属性是否已更改,不再是默认值且应对其进行序列化。Returns a value that indicates whether the Transport property has changed from its default value and should be serialized. WCF 使用此项进行 XAML 集成。This is used by WCF for XAML integration.

ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

适用于