Share via


SyncTableCollection Class

Represents a collection of SyncTable objects.

Inheritance Hierarchy

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

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

Syntax

'Declaration
<SerializableAttribute> _
Public Class SyncTableCollection _
    Inherits Collection(Of SyncTable)
'Usage
Dim instance As SyncTableCollection
[SerializableAttribute]
public class SyncTableCollection : Collection<SyncTable>
[SerializableAttribute]
public ref class SyncTableCollection : public Collection<SyncTable^>
[<SerializableAttribute>]
type SyncTableCollection =  
    class
        inherit Collection<SyncTable>
    end
public class SyncTableCollection extends Collection<SyncTable>

The SyncTableCollection type exposes the following members.

Constructors

  Name Description
Public method SyncTableCollection Initializes a new instance of the SyncTableCollection class.

Top

Properties

  Name Description
Public property Count (Inherited from Collection<SyncTable>.)
Public property Item[Int32] (Inherited from Collection<SyncTable>.)
Public property Item[String] Gets a SyncTable object with the specified name from the collection.
Protected property Items (Inherited from Collection<SyncTable>.)

Top

Methods

  Name Description
Public method Add(String) Adds a SyncTable object with the specified table name to the end of the collection.
Public method Add(T) (Inherited from Collection<SyncTable>.)
Public method Add(String, SyncDirection) Adds a SyncTable object with the specified table name and synchronization direction to the end of the collection.
Public method Add(String, TableCreationOption) Adds a SyncTable object with the specified table name and creation option to the end of the collection.
Public method Add(String, TableCreationOption, SyncDirection) Adds a SyncTable object with the specified table name, creation option, and synchronization direction to the end of the collection.
Public method Add(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 method Clear (Inherited from Collection<SyncTable>.)
Protected method ClearItems (Inherited from Collection<SyncTable>.)
Public method Contains(String) Determines whether a SyncTable object with the specified name is in the collection.
Public method Contains(T) (Inherited from Collection<SyncTable>.)
Public method CopyTo (Inherited from Collection<SyncTable>.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator (Inherited from Collection<SyncTable>.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method IndexOf(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 method IndexOf(T) (Inherited from Collection<SyncTable>.)
Public method Insert (Inherited from Collection<SyncTable>.)
Protected method InsertItem Inserts a SyncTable object into the collection at the specified index. (Overrides Collection<T>.InsertItem(Int32, T).)
Protected method MemberwiseClone (Inherited from Object.)
Public method Remove(String) Removes the first occurrence of a SyncTable object from the collection when given a table name.
Public method Remove(T) (Inherited from Collection<SyncTable>.)
Public method RemoveAt (Inherited from Collection<SyncTable>.)
Protected method RemoveItem (Inherited from Collection<SyncTable>.)
Protected method SetItem Replaces the SyncTable object at the specified index. (Overrides Collection<T>.SetItem(Int32, T).)
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IList.Add (Inherited from Collection<SyncTable>.)
Explicit interface implemetationPrivate method IList.Contains (Inherited from Collection<SyncTable>.)
Explicit interface implemetationPrivate method ICollection.CopyTo (Inherited from Collection<SyncTable>.)
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator (Inherited from Collection<SyncTable>.)
Explicit interface implemetationPrivate method IList.IndexOf (Inherited from Collection<SyncTable>.)
Explicit interface implemetationPrivate method IList.Insert (Inherited from Collection<SyncTable>.)
Explicit interface implemetationPrivate property IList.IsFixedSize (Inherited from Collection<SyncTable>.)
Explicit interface implemetationPrivate property ICollection<T>.IsReadOnly (Inherited from Collection<SyncTable>.)
Explicit interface implemetationPrivate property IList.IsReadOnly (Inherited from Collection<SyncTable>.)
Explicit interface implemetationPrivate property ICollection.IsSynchronized (Inherited from Collection<SyncTable>.)
Explicit interface implemetationPrivate property IList.Item (Inherited from Collection<SyncTable>.)
Explicit interface implemetationPrivate method IList.Remove (Inherited from Collection<SyncTable>.)
Explicit interface implemetationPrivate property ICollection.SyncRoot (Inherited from Collection<SyncTable>.)

Top

Remarks

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.

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.Data Namespace