SyncTableCollection Class

Represents a collection of SyncTable objects.

System.Object
  System.Collections.ObjectModel.Collection<SyncTable>
    Microsoft.Synchronization.Data.SyncTableCollection

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

[SerializableAttribute]
public class SyncTableCollection : Collection<SyncTable>

The SyncTableCollection type exposes the following members.

  NameDescription
Public methodSyncTableCollectionInitializes a new instance of the SyncTableCollection class.
Top

  NameDescription
Public propertyCount (Inherited from Collection<SyncTable>.)
Public propertyItem[Int32] (Inherited from Collection<SyncTable>.)
Public propertyItem[String]Gets a SyncTable object with the specified name from the collection.
Protected propertyItems (Inherited from Collection<SyncTable>.)
Top

  NameDescription
Public methodAdd(String)Adds a SyncTable object with the specified table name to the end of the collection.
Public methodAdd(T) (Inherited from Collection<SyncTable>.)
Public methodAdd(String, SyncDirection)Adds a SyncTable object with the specified table name and synchronization direction to the end of the collection.
Public methodAdd(String, TableCreationOption)Adds a SyncTable object with the specified table name and creation option to the end of the collection.
Public methodAdd(String, TableCreationOption, SyncDirection)Adds a SyncTable object with the specified table name, creation option, and synchronization direction to the end of the collection.
Public methodAdd(String, TableCreationOption, SyncDirection, SyncGroup)Adds a SyncTable object with the specified table name, creation option, synchronization direction, and synchronization group to the end of the collection.
Public methodClear (Inherited from Collection<SyncTable>.)
Protected methodClearItems (Inherited from Collection<SyncTable>.)
Public methodContains(String)Determines whether a SyncTable object with the specified name is in the collection.
Public methodContains(T) (Inherited from Collection<SyncTable>.)
Public methodCopyTo (Inherited from Collection<SyncTable>.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetEnumerator (Inherited from Collection<SyncTable>.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodIndexOf(String)Searches for a SyncTable object when given a table name, and returns the zero-based index of the first occurrence within the entire collection.
Public methodIndexOf(T) (Inherited from Collection<SyncTable>.)
Public methodInsert (Inherited from Collection<SyncTable>.)
Protected methodInsertItemInserts a SyncTable object into the collection at the specified index. (Overrides Collection<T>.InsertItem(Int32, T).)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemove(String)Removes the first occurrence of a SyncTable object from the collection when given a table name.
Public methodRemove(T) (Inherited from Collection<SyncTable>.)
Public methodRemoveAt (Inherited from Collection<SyncTable>.)
Protected methodRemoveItem (Inherited from Collection<SyncTable>.)
Protected methodSetItemReplaces the SyncTable object at the specified index. (Overrides Collection<T>.SetItem(Int32, T).)
Public methodToString (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIList.Add (Inherited from Collection<SyncTable>.)
Explicit interface implemetationPrivate methodIList.Contains (Inherited from Collection<SyncTable>.)
Explicit interface implemetationPrivate methodICollection.CopyTo (Inherited from Collection<SyncTable>.)
Explicit interface implemetationPrivate methodIEnumerable.GetEnumerator (Inherited from Collection<SyncTable>.)
Explicit interface implemetationPrivate methodIList.IndexOf (Inherited from Collection<SyncTable>.)
Explicit interface implemetationPrivate methodIList.Insert (Inherited from Collection<SyncTable>.)
Explicit interface implemetationPrivate propertyIList.IsFixedSize (Inherited from Collection<SyncTable>.)
Explicit interface implemetationPrivate propertyICollection<T>.IsReadOnly (Inherited from Collection<SyncTable>.)
Explicit interface implemetationPrivate propertyIList.IsReadOnly (Inherited from Collection<SyncTable>.)
Explicit interface implemetationPrivate propertyICollection.IsSynchronized (Inherited from Collection<SyncTable>.)
Explicit interface implemetationPrivate propertyIList.Item (Inherited from Collection<SyncTable>.)
Explicit interface implemetationPrivate methodIList.Remove (Inherited from Collection<SyncTable>.)
Explicit interface implemetationPrivate propertyICollection.SyncRoot (Inherited from Collection<SyncTable>.)
Top

The SyncTableCollection enforces the following semantics:

  • The order of SyncTable objects in the collection determines the order in which tables are synchronized.

  • Only one SyncTable object for a given table name can exist in the collection if the table does not have a SyncGroup reference.

  • The SyncTableCollection allows two or more SyncTable objects with the same table name if the tables belong to different SyncGroup objects.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: