Share via


ODataMessageExtensions.PreferHeader(IODataRequestMessage) Method

Definition

Gets the ODataPreferenceHeader instance to get or set preferences on the "Prefer" header of the requestMessage.

public static Microsoft.OData.ODataPreferenceHeader PreferHeader (this Microsoft.OData.IODataRequestMessage requestMessage);
static member PreferHeader : Microsoft.OData.IODataRequestMessage -> Microsoft.OData.ODataPreferenceHeader
<Extension()>
Public Function PreferHeader (requestMessage As IODataRequestMessage) As ODataPreferenceHeader

Parameters

requestMessage
IODataRequestMessage

The request message to get or set the "Prefer" header.

Returns

Returns the ODataPreferenceHeader instance to get or set preferences on the "Prefer" header of the requestMessage.

Applies to