This topic has not yet been rated - Rate this topic

DataServiceState Class

July 26, 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.

  NameDescription
Public methodDataServiceStateThe DataServiceState object helps Windows Phone applications handle tombstoning by preserving and restoring the state of DataServiceContext and DataServiceCollection<T> objects.
Top
  NameDescription
Public propertyContextThe DataServiceContext object that is root of the tracked DataServiceCollection<T> objects that are specified in the RootCollections property.
Public propertyRootCollectionsThe DataServiceCollection<T> objects that were deserialized by the Deserialize(String) method.
Top
  NameDescription
Public methodStatic memberDeserializeDeserializes the DataServiceContext and DataServiceCollection<T> objects that were serialized by the Serialize() method.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodStatic memberSerialize(DataServiceContext)Serializes a DataServiceContext object.
Public methodStatic memberSerialize(DataServiceContext, Dictionary<String, Object>)Serializes a DataServiceContext object and a System.Collections.Generic.Dictionary{System.String,System.Object} of DataServiceCollection<T> objects.
Public methodToString (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)
© 2013 Microsoft. All rights reserved.