ODataPreferenceHeader.Get(String) 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 preferenceName
from the "Prefer" header from the underlying IODataRequestMessage or
the "Preference-Applied" header from the underlying IODataResponseMessage.
protected Microsoft.OData.HttpHeaderValueElement Get (string preferenceName);
member this.Get : string -> Microsoft.OData.HttpHeaderValueElement
Protected Function Get (preferenceName As String) As HttpHeaderValueElement
Parameters
- preferenceName
- String
The preference to get.
Returns
Returns a key value pair of the preferenceName
and its value. The Value property of the key value pair may be null since not
all preferences have value. If the preferenceName
is missing from the header, null is returned.