Share via


DataServiceClientFormat Class

Definition

Tracks the user-preferred format which the client should use when making requests.

public sealed class DataServiceClientFormat
type DataServiceClientFormat = class
Public NotInheritable Class DataServiceClientFormat
Inheritance
DataServiceClientFormat

Properties

LoadServiceModel

Invoked when using the parameterless UseJson method in order to get the service model.

ODataFormat

Gets the current format. Defaults to Atom if nothing else has been specified.

Methods

UseJson()

Indicates that the client should use the efficient JSON format. Will invoke the LoadServiceModel delegate property in order to get the required service model.

UseJson(IEdmModel)

Indicates that the client should use the efficient JSON format.

Applies to