Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DataServiceClientFormat Class

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

System.Object
  System.Data.Services.Client.DataServiceClientFormat

Namespace:  System.Data.Services.Client
Assembly:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)
public sealed class DataServiceClientFormat

The DataServiceClientFormat type exposes the following members.

  NameDescription
Public propertyLoadServiceModelInvoked when using the parameterless UseJson method in order to get the service model.
Public propertyODataFormatGets the current format. Defaults to Atom if nothing else has been specified.
Top
  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from Object.)
Public methodUseAtomIndicates that the client should use the Atom format.
Public methodUseJson()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 methodUseJson(IEdmModel)Indicates that the client should use the efficient JSON format.
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.