Share via


ODataPreferenceHeader Class

 

Represents a class that sets the "Prefer" header on an IODataRequestMessage or the "Preference-Applied" header on an IODataResponseMessage.

Namespace:   Microsoft.OData.Core
Assembly:  Microsoft.OData.Core (in Microsoft.OData.Core.dll)

Inheritance Hierarchy

System.Object
  Microsoft.OData.Core.ODataPreferenceHeader

Syntax

public sealed class ODataPreferenceHeader
public ref class ODataPreferenceHeader sealed 
[<Sealed>]
type ODataPreferenceHeader = class end
Public NotInheritable Class ODataPreferenceHeader

Properties

Name Description
System_CAPS_pubproperty AnnotationFilter

Gets or sets the "odata.include-annotations" preference with the given filter to the "Prefer" header on the underlying IODataRequestMessage or the "Preference-Applied" header on the underlying IODataResponseMessage interface.

System_CAPS_pubproperty RespondAsync

System_CAPS_pubproperty ReturnContent

Property to get and set the "return=representation" and "return=minimal" preferences to the "Prefer" header on the underlying IODataRequestMessage or the "Preference-Applied" header on the underlying IODataResponseMessage

System_CAPS_pubproperty Wait

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.OData.Core Namespace

Return to top