Share via


WebHttpEndpoint.AutomaticFormatSelectionEnabled 屬性

定義

取得或設定值,這個值表示是否啟用自動格式選取。

public:
 property bool AutomaticFormatSelectionEnabled { bool get(); void set(bool value); };
public bool AutomaticFormatSelectionEnabled { get; set; }
member this.AutomaticFormatSelectionEnabled : bool with get, set
Public Property AutomaticFormatSelectionEnabled As Boolean

屬性值

如果啟用自動格式選取,則為 true,否則為 false

備註

啟用自動格式選取時,WCF 基礎結構會剖 Accept 析要求訊息的標頭,並判斷最適當的回應格式。 Accept如果標頭未指定適當的回應格式,WCF 基礎結構會使用 Content-Type 要求訊息的 或作業的預設回應格式。

適用於