C# Class Microsoft.Samples.Synchronization.ClientServices.OfflineEntityMetadata

Class that represents the metadata required for the sync protocol to work correctly. Applications should not change these properties except when required by the protocol (the Id will change for an item that is inserted for the first time). The exception to this is the IsTombstone property, which should be set when the application is using a custom store and an item is being deleted. Applications using the IsolatedStorageOfflineContext should never set any properties.
Afficher le fichier Open project: rafek/SyncFx Class Usage Examples

Méthodes publiques

Méthode Description
OfflineEntityMetadata ( ) : System

Public constructor for the metadata

OfflineEntityMetadata ( bool isTombstone, string id, string etag, Uri editUri ) : System

Public constructor for the metadata which takes parameters for the metadata.

Private Methods

Méthode Description
Clone ( ) : OfflineEntityMetadata

Used while creating Snapshot to do a depp copy of the original copy's metadata

Method Details

OfflineEntityMetadata() public méthode

Public constructor for the metadata
public OfflineEntityMetadata ( ) : System
Résultat System

OfflineEntityMetadata() public méthode

Public constructor for the metadata which takes parameters for the metadata.
public OfflineEntityMetadata ( bool isTombstone, string id, string etag, Uri editUri ) : System
isTombstone bool Whether or not the entity is a tombstone
id string Sync id for the item
etag string Item's OData ETag
editUri System.Uri Item's OData Edit Uri
Résultat System