Share via


ODataMessageExtensions.PreferenceAppliedHeader Method

Gets the ODataPreferenceHeader instance to get or set preferences on the "Preference-Applied" header of the responseMessage.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function PreferenceAppliedHeader ( _
    responseMessage As IODataResponseMessage _
) As ODataPreferenceHeader
'Usage
Dim responseMessage As IODataResponseMessage 
Dim returnValue As ODataPreferenceHeader 

returnValue = responseMessage.PreferenceAppliedHeader()
public static ODataPreferenceHeader PreferenceAppliedHeader(
    this IODataResponseMessage responseMessage
)
[ExtensionAttribute]
public:
static ODataPreferenceHeader^ PreferenceAppliedHeader(
    IODataResponseMessage^ responseMessage
)
static member PreferenceAppliedHeader : 
        responseMessage:IODataResponseMessage -> ODataPreferenceHeader
public static function PreferenceAppliedHeader(
    responseMessage : IODataResponseMessage
) : ODataPreferenceHeader

Parameters

Return Value

Type: Microsoft.Data.OData.ODataPreferenceHeader
Returns the ODataPreferenceHeader instance to get or set preferences on the "Preference-Applied" header of the responseMessage.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IODataResponseMessage. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.113) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.113).

See Also

Reference

ODataMessageExtensions Class

Microsoft.Data.OData Namespace