ODataMessageExtensions.PreferHeader(IODataRequestMessage) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.