ODataPreferenceHeader.ReturnContent Property
Gets or sets the "return-content" and "return-no-content" preferences to the "Prefer" header on the underlying IODataRequestMessage or the "Preference-Applied" header on the underlying IODataResponseMessage.
Namespace: Microsoft.Data.OData
Assembly: Microsoft.Data.OData (in Microsoft.Data.OData.dll)
Syntax
'Declaration
Public Property ReturnContent As Nullable(Of Boolean)
Get
Set
'Usage
Dim instance As ODataPreferenceHeader
Dim value As Nullable(Of Boolean)
value = instance.ReturnContent
instance.ReturnContent = value
public Nullable<bool> ReturnContent { get; set; }
public:
property Nullable<bool> ReturnContent {
Nullable<bool> get ();
void set (Nullable<bool> value);
}
member ReturnContent : Nullable<bool> with get, set
function get ReturnContent () : Nullable<boolean>
function set ReturnContent (value : Nullable<boolean>)
Property Value
Type: System.Nullable<Boolean>
The "return-content" and "return-no-content" preferences to the "Prefer" header on the underlying IODataRequestMessage or the "Preference-Applied" header on the underlying IODataResponseMessage.
Remarks
. Setting true sets the "return-content" preference and clears the "return-no-content" preference. Setting false sets the "return-no-content" preference and clears the "return-content" preference. Setting null clears the "return-content" and "return-no-content" preferences. Returns true if the "return-content" preference is on the header. Otherwise returns false if the "return-no-content" is on the header. Returning null indicates that "return-content" and "return-no-content" are not on the header.