ODataPreferenceHeader.Set(HttpHeaderValueElement) 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.
Sets the preference
to the "Prefer" header on the underlying IODataRequestMessage or
the "Preference-Applied" header on the underlying IODataResponseMessage.
protected void Set (Microsoft.OData.HttpHeaderValueElement preference);
member this.Set : Microsoft.OData.HttpHeaderValueElement -> unit
Protected Sub Set (preference As HttpHeaderValueElement)
Parameters
- preference
- HttpHeaderValueElement
The preference to set.
Remarks
If preference
is already on the header, this method does a replace rather than adding another instance of the same preference.