WebHttpSecurity 類別

定義

指定設定服務端點接收 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
繼承
WebHttpSecurity

備註

WebHttpSecurity 為以 WebHttpBinding設定的端點提供安全性需求。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 類別的新執行個體。Creates a new instance of the WebHttpSecurity class.

屬性

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

取得包含此繫結之傳輸層級安全性設定的物件。Gets an object that contains the transport-level security settings for this binding.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ShouldSerializeMode()

指定 Mode 屬性是否已變更為非預設值且應該序列化。Specifies whether the Mode property has changed from its default and should be serialized. 這項資訊會用於 XAML 整合。This is used for XAML integration.

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()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於