Export (0) Print
Expand All

DataTableMappingCollection Class

A collection of DataTableMapping objects. This class cannot be inherited.

System::Object
  System::MarshalByRefObject
    System.Data.Common::DataTableMappingCollection

Namespace:  System.Data.Common
Assembly:  System.Data (in System.Data.dll)

[ListBindableAttribute(false)]
public ref class DataTableMappingCollection sealed : public MarshalByRefObject, 
	ITableMappingCollection, IList, ICollection, IEnumerable

The DataTableMappingCollection type exposes the following members.

  NameDescription
Public methodSupported by the XNA FrameworkDataTableMappingCollectionInitializes a new instance of the DataTableMappingCollection class. This new instance is empty, that is, it does not yet contain any DataTableMapping objects.
Top

  NameDescription
Public propertySupported by the XNA FrameworkCountGets the number of DataTableMapping objects in the collection.
Public propertySupported by the XNA FrameworkItem[Int32]Gets or sets the DataTableMapping object at the specified index.
Public propertySupported by the XNA FrameworkItem[String]Gets or sets the DataTableMapping object with the specified source table name.
Top

  NameDescription
Public methodSupported by the XNA FrameworkAdd(Object)Adds an Object that is a table mapping to the collection.
Public methodSupported by the XNA FrameworkAdd(String, String)Adds a DataTableMapping object to the collection when given a source table name and a DataSet table name.
Public methodSupported by the XNA FrameworkAddRange(Array)Copies the elements of the specified Array to the end of the collection.
Public methodSupported by the XNA FrameworkAddRange(array<DataTableMapping>)Copies the elements of the specified DataTableMapping array to the end of the collection.
Public methodSupported by the XNA FrameworkClearRemoves all DataTableMapping objects from the collection.
Public methodSupported by the XNA FrameworkContains(Object)Gets a value indicating whether the given DataTableMapping object exists in the collection.
Public methodSupported by the XNA FrameworkContains(String)Gets a value indicating whether a DataTableMapping object with the specified source table name exists in the collection.
Public methodSupported by the XNA FrameworkCopyTo(Array, Int32)Copies the elements of the DataTableMappingCollection to the specified array.
Public methodSupported by the XNA FrameworkCopyTo(array<DataTableMapping>, Int32)Copies the elements of the DataTableMapping to the specified array.
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public methodSupported by the XNA FrameworkEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodSupported by the XNA FrameworkGetByDataSetTableGets the DataTableMapping object with the specified DataSet table name.
Public methodSupported by the XNA FrameworkGetEnumeratorGets an enumerator that can iterate through the collection.
Public methodSupported by the XNA FrameworkGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public methodStatic memberSupported by the XNA FrameworkGetTableMappingBySchemaActionGets a DataColumnMapping object with the specified source table name and DataSet table name, using the given MissingMappingAction.
Public methodSupported by the XNA FrameworkGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodSupported by the XNA FrameworkIndexOf(Object)Gets the location of the specified DataTableMapping object within the collection.
Public methodSupported by the XNA FrameworkIndexOf(String)Gets the location of the DataTableMapping object with the specified source table name.
Public methodSupported by the XNA FrameworkIndexOfDataSetTableGets the location of the DataTableMapping object with the specified DataSet table name.
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public methodSupported by the XNA FrameworkInsert(Int32, DataTableMapping)Inserts a DataTableMapping object into the DataTableMappingCollection at the specified index.
Public methodSupported by the XNA FrameworkInsert(Int32, Object)Inserts a DataTableMapping object into the DataTableMappingCollection at the specified index.
Public methodSupported by the XNA FrameworkRemove(DataTableMapping)Removes the specified DataTableMapping object from the collection.
Public methodSupported by the XNA FrameworkRemove(Object)Removes the specified DataTableMapping object from the collection.
Public methodSupported by the XNA FrameworkRemoveAt(Int32)Removes the DataTableMapping object located at the specified index from the collection.
Public methodSupported by the XNA FrameworkRemoveAt(String)Removes the DataTableMapping object with the specified source table name from the collection.
Public methodSupported by the XNA FrameworkToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public Extension MethodAsParallelEnables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension MethodAsQueryableConverts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension MethodSupported by the XNA FrameworkCast<TResult>Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodSupported by the XNA FrameworkOfType<TResult>Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top

  NameDescription
Explicit interface implemetationPrivate propertySupported by the XNA FrameworkICollection::IsSynchronizedGets a value indicating whether access to the ICollection is synchronized (thread safe).
Explicit interface implemetationPrivate propertySupported by the XNA FrameworkICollection::SyncRootGets an object that can be used to synchronize access to the ICollection.
Explicit interface implemetationPrivate propertySupported by the XNA FrameworkIList::IsFixedSizeGets a value indicating whether the IList has a fixed size.
Explicit interface implemetationPrivate propertySupported by the XNA FrameworkIList::IsReadOnlyGets a value indicating whether the IList is read-only.
Explicit interface implemetationPrivate propertySupported by the XNA FrameworkIList::ItemGets or sets an item from the collection at a specified index.
Explicit interface implemetationPrivate methodSupported by the XNA FrameworkITableMappingCollection::AddAdds a table mapping to the collection.
Explicit interface implemetationPrivate methodSupported by the XNA FrameworkITableMappingCollection::GetByDataSetTableGets the TableMapping object with the specified DataSet table name.
Explicit interface implemetationPrivate propertySupported by the XNA FrameworkITableMappingCollection::ItemGets or sets the instance of ITableMapping with the specified SourceTable name.
Top

The following example uses an OleDbDataAdapter to Add DataTableMapping objects to its TableMappings collection, and then displays a list of those mapped source tables. This example assumes that an OleDbDataAdapter has already been created.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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:
© 2014 Microsoft