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请求消息或操作的默认响应格式。

适用于