DataServiceClientFormat Class

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

Inheritance Hierarchy

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

Namespace:  System.Data.Services.Client
Assembly:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)

Syntax

'Declaration
Public NotInheritable Class DataServiceClientFormat
'Usage
Dim instance As DataServiceClientFormat
public sealed class DataServiceClientFormat
public ref class DataServiceClientFormat sealed
[<SealedAttribute>]
type DataServiceClientFormat =  class end
public final class DataServiceClientFormat

The DataServiceClientFormat type exposes the following members.

Properties

  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.

Top

Methods

  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.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Data.Services.Client Namespace