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 | |
---|---|---|
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. | |
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 | |
---|---|---|
Equals | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
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.