Duration (Pacific Standard Time):
To (Pacific Standard Time):
  • None
User Action:
  • None

DataServiceClientFormat Class

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


Namespace:  System.Data.Services.Client
Assembly:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)
Public NotInheritable Class DataServiceClientFormat
Dim instance As DataServiceClientFormat

The DataServiceClientFormat type exposes the following members.

  Name Description
Public property LoadServiceModel Invoked when using the parameterless UseJson method in order to get the service model.
Public property ODataFormat Gets the current format. Defaults to Atom if nothing else has been specified.
  Name Description
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method ToString (Inherited from Object.)
Public method UseAtom Indicates that the client should use the Atom format.
Public method 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.
Public method UseJson(IEdmModel) Indicates that the client should use the efficient JSON format.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.