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 | |
---|---|---|
DbSyncColumnMappingCollection | Initializes a new instance of the DbSyncColumnMappingCollection class. |
Top
Properties
Name | Description | |
---|---|---|
Count | (Inherited from Collection<DbSyncColumnMapping>.) | |
Item | (Inherited from Collection<DbSyncColumnMapping>.) | |
Items | (Inherited from Collection<DbSyncColumnMapping>.) |
Top
Methods
Name | Description | |
---|---|---|
Add(T) | (Inherited from Collection<DbSyncColumnMapping>.) | |
Add(String, String) | Adds a DbSyncColumnMapping object that has the specified local and remote column names to the end of the collection. | |
Clear | (Inherited from Collection<DbSyncColumnMapping>.) | |
ClearItems | (Inherited from Collection<DbSyncColumnMapping>.) | |
Contains | (Inherited from Collection<DbSyncColumnMapping>.) | |
CopyTo | (Inherited from Collection<DbSyncColumnMapping>.) | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetEnumerator | (Inherited from Collection<DbSyncColumnMapping>.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
IndexOf | (Inherited from Collection<DbSyncColumnMapping>.) | |
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. | |
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. | |
Insert | (Inherited from Collection<DbSyncColumnMapping>.) | |
InsertItem | Inserts a DbSyncColumnMapping object into the collection at the specified index. (Overrides Collection<T>.InsertItem(Int32, T).) | |
MemberwiseClone | (Inherited from Object.) | |
Remove | (Inherited from Collection<DbSyncColumnMapping>.) | |
RemoveAt | (Inherited from Collection<DbSyncColumnMapping>.) | |
RemoveItem | (Inherited from Collection<DbSyncColumnMapping>.) | |
SetItem | Replaces the DbSyncColumnMapping 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<DbSyncColumnMapping>.) | |
IList.Contains | (Inherited from Collection<DbSyncColumnMapping>.) | |
ICollection.CopyTo | (Inherited from Collection<DbSyncColumnMapping>.) | |
IEnumerable.GetEnumerator | (Inherited from Collection<DbSyncColumnMapping>.) | |
IList.IndexOf | (Inherited from Collection<DbSyncColumnMapping>.) | |
IList.Insert | (Inherited from Collection<DbSyncColumnMapping>.) | |
IList.IsFixedSize | (Inherited from Collection<DbSyncColumnMapping>.) | |
ICollection<T>.IsReadOnly | (Inherited from Collection<DbSyncColumnMapping>.) | |
IList.IsReadOnly | (Inherited from Collection<DbSyncColumnMapping>.) | |
ICollection.IsSynchronized | (Inherited from Collection<DbSyncColumnMapping>.) | |
IList.Item | (Inherited from Collection<DbSyncColumnMapping>.) | |
IList.Remove | (Inherited from Collection<DbSyncColumnMapping>.) | |
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.