Share via


ODataPreferenceHeader Class

Represents the "Prefer" header on an IODataRequestMessage or the "Preference-Applied" header on an IODataResponseMessage.

Inheritance Hierarchy

System.Object
  Microsoft.Data.OData.ODataPreferenceHeader

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

Syntax

'Declaration
Public NotInheritable Class ODataPreferenceHeader
'Usage
Dim instance As ODataPreferenceHeader
public sealed class ODataPreferenceHeader
public ref class ODataPreferenceHeader sealed
[<SealedAttribute>]
type ODataPreferenceHeader =  class end
public final class ODataPreferenceHeader

The ODataPreferenceHeader type exposes the following members.

Properties

  Name Description
Public property 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.
Public property ReturnContent Gets or sets the "return-content" and "return-no-content" preferences to the "Prefer" header on the underlying IODataRequestMessage or the "Preference-Applied" header on the underlying IODataResponseMessage.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

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

Reference

Microsoft.Data.OData Namespace