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 | |
---|---|---|
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. |
|
RespondAsync | ||
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 |
|
Wait |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
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