WebHttpBehavior 類別

定義

啟用 Windows Communication Foundation (WCF) 服務的 Web 程式設計模型。

public ref class WebHttpBehavior : System::ServiceModel::Description::IEndpointBehavior
public class WebHttpBehavior : System.ServiceModel.Description.IEndpointBehavior
type WebHttpBehavior = class
    interface IEndpointBehavior
Public Class WebHttpBehavior
Implements IEndpointBehavior
繼承
WebHttpBehavior
衍生
實作

備註

搭配 WebHttpBehavior 系結使用 WebHttpBinding 時的行為可讓 WCF 公開及存取 Web 樣式服務。 WebServiceHost 會自動將此行為新增至使用 的 WebHttpBinding 端點。

建構函式

WebHttpBehavior()

初始化 WebHttpBehavior 類別的新執行個體。

屬性

AutomaticFormatSelectionEnabled

取得或設定值,這個值會判斷是否啟用自動格式選取。

DefaultBodyStyle

取得或設定預設的訊息本文樣式。

DefaultOutgoingRequestFormat

取得或設定預設的傳出要求格式。

DefaultOutgoingResponseFormat

取得或設定預設的傳出回應格式。

FaultExceptionEnabled

取得或設定旗標,指定內部伺服器錯誤 (HTTP 狀態碼:500) 發生時,是否產生 FaultException。

HelpEnabled

取得或設定值,這個值會判斷是否已啟用 WCF 說明頁面。

JavascriptCallbackParameterName

取得或設定 JavaScript 回呼參數名稱。

方法

AddBindingParameters(ServiceEndpoint, BindingParameterCollection)

實作 AddBindingParameters(ServiceEndpoint, BindingParameterCollection) 方法,在執行階段將資料傳遞至繫結以支援自訂行為。

AddClientErrorInspector(ServiceEndpoint, ClientRuntime)

將用戶端錯誤檢查加入至指定的服務端點。

AddServerErrorHandlers(ServiceEndpoint, EndpointDispatcher)

覆寫此方法以變更處理服務發生錯誤的方式。

ApplyClientBehavior(ServiceEndpoint, ClientRuntime)

實作 ApplyClientBehavior(ServiceEndpoint, ClientRuntime) 方法,支援跨端點的用戶端修改與擴充。

ApplyDispatchBehavior(ServiceEndpoint, EndpointDispatcher)

實作 ApplyDispatchBehavior(ServiceEndpoint, EndpointDispatcher) 方法,支援跨端點的用戶端修改與擴充。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetOperationSelector(ServiceEndpoint)

建立新的 WebHttpDispatchOperationSelector 物件。

GetQueryStringConverter(OperationDescription)

取得查詢字串轉換器。

GetReplyClientFormatter(OperationDescription, ServiceEndpoint)

取得指定之端點和服務作業在用戶端上的回覆格式器。

GetReplyDispatchFormatter(OperationDescription, ServiceEndpoint)

取得指定之端點和服務作業在服務上的回覆格式器。

GetRequestClientFormatter(OperationDescription, ServiceEndpoint)

取得指定之服務作業和端點在用戶端上的要求格式器。

GetRequestDispatchFormatter(OperationDescription, ServiceEndpoint)

取得指定之服務作業和服務端點在服務上的要求格式器。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)
Validate(ServiceEndpoint)

確認端點符合 Web 程式設計模型的需求。

ValidateBinding(ServiceEndpoint)

確保繫結有效且可搭配 WCF Web 程式設計模型使用。

適用於