Editar

Compartir a través de


WebHttpEndpoint.AutomaticFormatSelectionEnabled Property

Definition

Gets or sets a value that indicates whether automatic format selection is enabled.

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

Property Value

true if automatic format selection is enabled, otherwise false.

Remarks

When automatic format selection is enabled, the WCF infrastructure parses the Accept header of the request message and determines the most appropriate response format. If the Accept header does not specify a suitable response format, the WCF infrastructure uses the Content-Type of the request message or the default response format of the operation.

Applies to