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 | |
---|---|---|
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. |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
ToString | (Inherited from Object.) | |
UseAtom | Indicates that the client should use the Atom format. | |
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. |
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.