DataServiceContext.AddAndUpdateResponsePreference Property

Definition

Gets or sets whether the client requests that the data service return entity data in the response message to a change request.

public virtual Microsoft.OData.Client.DataServiceResponsePreference AddAndUpdateResponsePreference { get; set; }
member this.AddAndUpdateResponsePreference : Microsoft.OData.Client.DataServiceResponsePreference with get, set
Public Overridable Property AddAndUpdateResponsePreference As DataServiceResponsePreference

Property Value

A DataServiceResponsePreference object that determines whether to request a response form the data service.

Remarks

Whether POST/PUT/PATCH requests will process response from the server. Corresponds to Prefer header in HTTP POST/PUT/PATCH request.

Applies to