This topic has not yet been rated - Rate this topic

DataServiceState Class

Windows Phone

March 22, 2012

Represents the state of an Open Data Protocol (OData) service.

System.Object
  System.Data.Services.Client.DataServiceState

Namespace:  System.Data.Services.Client
Assembly:  System.Data.Services.Client (in System.Data.Services.Client.dll)
XMLNS for XAML: Not mapped to an xmlns.
[DataContractAttribute]
public class DataServiceState
<DataServiceState .../>

The DataServiceState type exposes the following members.

  Name Description
Public method DataServiceState The DataServiceState object helps Windows Phone applications handle tombstoning by preserving and restoring the state of DataServiceContext and DataServiceCollection<T> objects.
Top
  Name Description
Public property Context The DataServiceContext object that is root of the tracked DataServiceCollection<T> objects that are specified in the RootCollections property.
Public property RootCollections The DataServiceCollection<T> objects that were deserialized by the Deserialize(String) method.
Top
  Name Description
Public method Static member Deserialize Deserializes the DataServiceContext and DataServiceCollection<T> objects that were serialized by the Serialize() method.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Static member Serialize(DataServiceContext) Serializes a DataServiceContext object.
Public method Static member Serialize(DataServiceContext, Dictionary<String, Object>) Serializes a DataServiceContext object and a System.Collections.Generic.Dictionary{System.String,System.Object} of DataServiceCollection<T> objects.
Public method ToString (Inherited from Object.)
Top

The DataServiceState object helps Windows Phone applications handle tombstoning by preserving and restoring the state of DataServiceContext and DataServiceCollection<T> objects.

Windows Phone OS

Supported in: 7.1

Windows Phone

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)