SyncKnowledge Class

Represents knowledge that a replica has about its item store.

Inheritance Hierarchy

System.Object
  Microsoft.Synchronization.SyncKnowledge
    Microsoft.Synchronization.ForgottenKnowledge

Namespace:  Microsoft.Synchronization
Assembly:  Microsoft.Synchronization (in Microsoft.Synchronization.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public Class SyncKnowledge _
    Implements ISerializable, IXmlSerializable
'Usage
Dim instance As SyncKnowledge
[SerializableAttribute]
public class SyncKnowledge : ISerializable, 
    IXmlSerializable
[SerializableAttribute]
public ref class SyncKnowledge : ISerializable, 
    IXmlSerializable
[<SerializableAttribute>]
type SyncKnowledge =  
    class
        interface ISerializable
        interface IXmlSerializable
    end
public class SyncKnowledge implements ISerializable, IXmlSerializable

The SyncKnowledge type exposes the following members.

Constructors

  Name Description
Public method SyncKnowledge() Initializes a new instance of the SyncKnowledge class.
Protected method SyncKnowledge(SerializationInfo, StreamingContext) Initializes a new instance of the SyncKnowledge class by using serialized data.
Public method SyncKnowledge(SyncIdFormatGroup, ReplicaKeyMap, UInt64) Initializes a new instance of the SyncKnowledge class that contains the specified ID format schema, replica key map, and tick count.
Public method SyncKnowledge(SyncIdFormatGroup, SyncId, UInt64) Initializes a new instance of the SyncKnowledge class that contains the specified ID format schema, replica ID, and tick count.

Top

Properties

  Name Description
Public property CompatibilityLevel Gets or sets the version of Sync Framework components that can be used with this object.
Public propertyStatic member DefaultCompatibilityLevel Gets or sets the default compatibility level of all SyncKnowledge objects.
Public property MinimumCompatibilityLevel Gets the minimum version of Sync Framework components that can be used with this object.
Public property ReplicaId Gets the ID of the replica that owns this knowledge.
Public property ReplicaKeyMap Gets the replica key map that is associated with this knowledge.

Top

Methods

  Name Description
Public method AddMarker Marks the specified item with the specified marker type.
Public method Clone Creates a new instance of this object, and copies the data from this object to the new object.
Public method Combine Combines the specified knowledge with the current knowledge.
Public method Compare Performs a fast comparison between the specified knowledge cookie and this knowledge object.
Public method Complement Returns the knowledge that is contained in this object, but that is not contained in the specified knowledge.
Public method Contains(ChangeUnitChange) Indicates whether the specified change unit change is known by this knowledge.
Public method Contains(ItemChange) Indicates whether the specified item change is known by this knowledge.
Public method Contains(SyncKnowledge) Indicates whether the specified knowledge is known by this knowledge.
Public method Contains(SyncId, SyncId, SyncVersion) Indicates whether the specified item change is known by this knowledge.
Public method Contains(SyncId, SyncId, SyncId, SyncVersion) Indicates whether the specified change unit change is known by this knowledge.
Public method ContainsMarker Indicates whether the specified item is marked with the specified marker type.
Public methodStatic member Deserialize(SyncIdFormatGroup, Byte[]) Creates a new instance of the SyncKnowledge class by using serialized data.
Public methodStatic member Deserialize(SyncIdFormatGroup, Byte[], ReplicaKeyMap) Creates a new instance of the SyncKnowledge class by using serialized data and the specified replica key map.
Public method Equals (Inherited from Object.)
Public method ExcludeChangeUnit Removes knowledge about the specified change unit from the knowledge.
Public method ExcludeItem Removes knowledge about the specified item from the knowledge.
Protected method Finalize (Inherited from Object.)
Public method FindMinTickCountForReplica Finds the minimum tick count in the knowledge for the specified replica.
Public method GetHashCode (Inherited from Object.)
Public method GetKnowledgeCookie Gets a lightweight, read-only representation of this knowledge object that can be used for fast comparisons.
Public method GetKnowledgeForChangeUnit Gets the knowledge for the specified change unit.
Public method GetKnowledgeForColumns Returns the knowledge for the specified set of change units for all the items that are contained in this object.
Public method GetKnowledgeForItem Gets the knowledge for the specified item.
Public method GetKnowledgeForRange Gets the knowledge for the specified range of item IDs.
Public method GetObjectData Serializes the knowledge object data to a SerializationInfo object.
Public method GetSchema Returns a null reference (Nothing in Visual Basic).
Public method GetSyncIdFormatGroup Gets the ID format schema of the IDs that are stored in this knowledge object.
Public method GetType (Inherited from Object.)
Public method Intersects Indicates whether the specified knowledge intersects with this knowledge.
Public method MapRemoteKnowledgeToLocal Converts a knowledge object from another replica into one that is compatible with the replica that owns this knowledge.
Protected method MemberwiseClone (Inherited from Object.)
Public method ReadXml Reconstitutes the object from its XML representation.
Public method RemoveAllChangeUnitsMarkers Removes all markers for items in the knowledge.
Public method RemoveMarker Removes a marker of the specified type from the specified item.
Public method Serialize() Serializes the knowledge object data to a byte array.
Public method Serialize(Boolean) Serializes the knowledge object data to a byte array.
Public method SetLocalTickCount Sets the tick count for the replica that owns this knowledge.
Public method ToString Gets a string that represents the knowledge. (Overrides Object.ToString().)
Public method WriteXml Converts this object into its XML representation.

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

Microsoft.Synchronization Namespace