Share via


OutgoingWebResponseContext.SuppressEntityBody 屬性

定義

取得或設定值,指出 Windows Communication Foundation (WCF) 是否省略通常寫入回應實體內容的資料,並強制傳回空白回應。

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

屬性值

如果 true 為 ,WCF 會省略通常寫入回應實體主體的任何資料,並強制傳回空的回應。 預設值是 false

適用於