DbSyncColumnMappingCollection Class

Represents a collection of DbSyncColumnMapping objects.

Inheritance Hierarchy

System.Object
  System.Collections.ObjectModel.Collection<DbSyncColumnMapping>
    Microsoft.Synchronization.Data.DbSyncColumnMappingCollection

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

Syntax

'Declaration
Public Class DbSyncColumnMappingCollection _
    Inherits Collection(Of DbSyncColumnMapping)
'Usage
Dim instance As DbSyncColumnMappingCollection
public class DbSyncColumnMappingCollection : Collection<DbSyncColumnMapping>
public ref class DbSyncColumnMappingCollection : public Collection<DbSyncColumnMapping^>
type DbSyncColumnMappingCollection =  
    class
        inherit Collection<DbSyncColumnMapping>
    end
public class DbSyncColumnMappingCollection extends Collection<DbSyncColumnMapping>

The DbSyncColumnMappingCollection type exposes the following members.

Constructors

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

Top

Properties

  Name Description
Public property Count (Inherited from Collection<DbSyncColumnMapping>.)
Public property Item (Inherited from Collection<DbSyncColumnMapping>.)
Protected property Items (Inherited from Collection<DbSyncColumnMapping>.)

Top

Methods

  Name Description
Public method Add(T) (Inherited from Collection<DbSyncColumnMapping>.)
Public method Add(String, String) Adds a DbSyncColumnMapping object that has the specified local and remote column names to the end of the collection.
Public method Clear (Inherited from Collection<DbSyncColumnMapping>.)
Protected method ClearItems (Inherited from Collection<DbSyncColumnMapping>.)
Public method Contains (Inherited from Collection<DbSyncColumnMapping>.)
Public method CopyTo (Inherited from Collection<DbSyncColumnMapping>.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator (Inherited from Collection<DbSyncColumnMapping>.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method IndexOf (Inherited from Collection<DbSyncColumnMapping>.)
Public method IndexOfLocalColumn Searches for a DbSyncColumnMapping object when given a local column name, and returns the zero-based index of the first occurrence within the whole collection.
Public method IndexOfRemoteColumn Searches for a DbSyncColumnMapping object when given a remote column name, and returns the zero-based index of the first occurrence within the whole collection.
Public method Insert (Inherited from Collection<DbSyncColumnMapping>.)
Protected method InsertItem Inserts a DbSyncColumnMapping object into the collection at the specified index. (Overrides Collection<T>.InsertItem(Int32, T).)
Protected method MemberwiseClone (Inherited from Object.)
Public method Remove (Inherited from Collection<DbSyncColumnMapping>.)
Public method RemoveAt (Inherited from Collection<DbSyncColumnMapping>.)
Protected method RemoveItem (Inherited from Collection<DbSyncColumnMapping>.)
Protected method SetItem Replaces the DbSyncColumnMapping 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<DbSyncColumnMapping>.)
Explicit interface implemetationPrivate method IList.Contains (Inherited from Collection<DbSyncColumnMapping>.)
Explicit interface implemetationPrivate method ICollection.CopyTo (Inherited from Collection<DbSyncColumnMapping>.)
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator (Inherited from Collection<DbSyncColumnMapping>.)
Explicit interface implemetationPrivate method IList.IndexOf (Inherited from Collection<DbSyncColumnMapping>.)
Explicit interface implemetationPrivate method IList.Insert (Inherited from Collection<DbSyncColumnMapping>.)
Explicit interface implemetationPrivate property IList.IsFixedSize (Inherited from Collection<DbSyncColumnMapping>.)
Explicit interface implemetationPrivate property ICollection<T>.IsReadOnly (Inherited from Collection<DbSyncColumnMapping>.)
Explicit interface implemetationPrivate property IList.IsReadOnly (Inherited from Collection<DbSyncColumnMapping>.)
Explicit interface implemetationPrivate property ICollection.IsSynchronized (Inherited from Collection<DbSyncColumnMapping>.)
Explicit interface implemetationPrivate property IList.Item (Inherited from Collection<DbSyncColumnMapping>.)
Explicit interface implemetationPrivate method IList.Remove (Inherited from Collection<DbSyncColumnMapping>.)
Explicit interface implemetationPrivate property ICollection.SyncRoot (Inherited from Collection<DbSyncColumnMapping>.)

Top

Remarks

This type is similar in functionality to the DataColumnMappingCollection type in ADO.NET. In peer-to-peer scenarios, the schema might differ between peer databases. For example, a table schema at the first peer might use numerical column names that are not easy to read. You can use the DbSyncColumnMapping and DbSyncColumnMappingCollection objects to map the columns to more friendly names for other peers.

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