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 | |
---|---|---|
SyncTableCollection | Initializes a new instance of the SyncTableCollection class. |
Top
Properties
Name | Description | |
---|---|---|
Count | (Inherited from Collection<SyncTable>.) | |
Item[Int32] | (Inherited from Collection<SyncTable>.) | |
Item[String] | Gets a SyncTable object with the specified name from the collection. | |
Items | (Inherited from Collection<SyncTable>.) |
Top
Methods
Name | Description | |
---|---|---|
Add(String) | Adds a SyncTable object with the specified table name to the end of the collection. | |
Add(T) | (Inherited from Collection<SyncTable>.) | |
Add(String, SyncDirection) | Adds a SyncTable object with the specified table name and synchronization direction to the end of the collection. | |
Add(String, TableCreationOption) | Adds a SyncTable object with the specified table name and creation option to the end of the collection. | |
Add(String, TableCreationOption, SyncDirection) | Adds a SyncTable object with the specified table name, creation option, and synchronization direction to the end of the collection. | |
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. | |
Clear | (Inherited from Collection<SyncTable>.) | |
ClearItems | (Inherited from Collection<SyncTable>.) | |
Contains(String) | Determines whether a SyncTable object with the specified name is in the collection. | |
Contains(T) | (Inherited from Collection<SyncTable>.) | |
CopyTo | (Inherited from Collection<SyncTable>.) | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetEnumerator | (Inherited from Collection<SyncTable>.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
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. | |
IndexOf(T) | (Inherited from Collection<SyncTable>.) | |
Insert | (Inherited from Collection<SyncTable>.) | |
InsertItem | Inserts a SyncTable object into the collection at the specified index. (Overrides Collection<T>.InsertItem(Int32, T).) | |
MemberwiseClone | (Inherited from Object.) | |
Remove(String) | Removes the first occurrence of a SyncTable object from the collection when given a table name. | |
Remove(T) | (Inherited from Collection<SyncTable>.) | |
RemoveAt | (Inherited from Collection<SyncTable>.) | |
RemoveItem | (Inherited from Collection<SyncTable>.) | |
SetItem | Replaces the SyncTable object at the specified index. (Overrides Collection<T>.SetItem(Int32, T).) | |
ToString | (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IList.Add | (Inherited from Collection<SyncTable>.) | |
IList.Contains | (Inherited from Collection<SyncTable>.) | |
ICollection.CopyTo | (Inherited from Collection<SyncTable>.) | |
IEnumerable.GetEnumerator | (Inherited from Collection<SyncTable>.) | |
IList.IndexOf | (Inherited from Collection<SyncTable>.) | |
IList.Insert | (Inherited from Collection<SyncTable>.) | |
IList.IsFixedSize | (Inherited from Collection<SyncTable>.) | |
ICollection<T>.IsReadOnly | (Inherited from Collection<SyncTable>.) | |
IList.IsReadOnly | (Inherited from Collection<SyncTable>.) | |
ICollection.IsSynchronized | (Inherited from Collection<SyncTable>.) | |
IList.Item | (Inherited from Collection<SyncTable>.) | |
IList.Remove | (Inherited from Collection<SyncTable>.) | |
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.