WebHttpEndpoint.AutomaticFormatSelectionEnabled Property

Definition

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

C#
public bool AutomaticFormatSelectionEnabled { get; set; }

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

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1