Jaa


ODataPreferenceHeader.Set(HttpHeaderValueElement) Method

Definition

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.

Applies to