DataColumnMappingCollection クラス

定義

DataColumnMapping オブジェクトのコレクションを含んでいます。

public ref class DataColumnMappingCollection sealed : MarshalByRefObject, System::Collections::IList, System::Data::IColumnMappingCollection
public ref class DataColumnMappingCollection sealed : MarshalByRefObject, System::Data::IColumnMappingCollection
public sealed class DataColumnMappingCollection : MarshalByRefObject, System.Collections.IList, System.Data.IColumnMappingCollection
public sealed class DataColumnMappingCollection : MarshalByRefObject, System.Data.IColumnMappingCollection
type DataColumnMappingCollection = class
    inherit MarshalByRefObject
    interface ICollection
    interface IEnumerable
    interface IList
    interface IColumnMappingCollection
type DataColumnMappingCollection = class
    inherit MarshalByRefObject
    interface IColumnMappingCollection
    interface IList
    interface ICollection
    interface IEnumerable
Public NotInheritable Class DataColumnMappingCollection
Inherits MarshalByRefObject
Implements IColumnMappingCollection, IList
Public NotInheritable Class DataColumnMappingCollection
Inherits MarshalByRefObject
Implements IColumnMappingCollection
継承
DataColumnMappingCollection
実装

次の例では、 DataTableMapping を使用して Add コレクションに複数 DataColumnMapping のオブジェクトを ColumnMappings 作成し、それらのマップされたソース列の一覧を表示します。 この例では、 が既に DataTableMapping 作成されていることを前提としています。


public void ShowColumnMappings()
{
    // ...
    // create tableMapping
    // ...
    tableMapping.ColumnMappings.Add("Category Name","DataCategory");
    tableMapping.ColumnMappings.Add("Description","DataDescription");
    tableMapping.ColumnMappings.Add("Picture","DataPicture");
    Console.WriteLine("Column Mappings");
    for(int i=0;i < tableMapping.ColumnMappings.Count;i++)
    {
        Console.WriteLine("  {0} {1}", i,
            tableMapping.ColumnMappings[i].ToString());
    }
}
Public Sub ShowColumnMappings()
    ' ...
    ' create tableMapping
    ' ...
    tableMapping.ColumnMappings.Add( _
       "Category Name", "DataCategory")
    tableMapping.ColumnMappings.Add( _
       "Description", "DataDescription")
    tableMapping.ColumnMappings.Add( _
       "Picture", "DataPicture")
    Console.WriteLine("Column Mappings:")
    Dim i As Integer
    For i = 0 To tableMapping.ColumnMappings.Count - 1
        Console.WriteLine("  {0} {1}", i, _
           tableMapping.ColumnMappings(i).ToString())
    Next i
End Sub

コンストラクター

DataColumnMappingCollection()

空の DataColumnMappingCollection を作成します。

プロパティ

Count

コレクション内の DataColumnMapping オブジェクト数を取得します。

Item[Int32]

指定したインデックスの位置にある DataColumnMapping オブジェクトを取得または設定します。

Item[String]

指定したソース列名が含まれる DataColumnMapping オブジェクトを取得または設定します。

メソッド

Add(Object)

DataColumnMapping オブジェクトをコレクションに追加します。

Add(String, String)

ソース列名と DataColumnMapping 列名を指定すると、DataSet オブジェクトをコレクションに追加します。

AddRange(Array)

指定した Array の要素をコレクションの末尾にコピーします。

AddRange(DataColumnMapping[])

指定した DataColumnMapping 配列の要素をコレクションの末尾にコピーします。

Clear()

コレクションからすべての DataColumnMapping オブジェクトを削除します。

Contains(Object)

指定した DataColumnMapping が含まれる Object オブジェクトがコレクション内に存在するかどうかを示す値を取得します。

Contains(String)

指定したソース列名が含まれる DataColumnMapping オブジェクトがコレクション内に存在するかどうかを示す値を取得します。

CopyTo(Array, Int32)

指定した配列に DataColumnMappingCollection の要素をコピーします。

CopyTo(DataColumnMapping[], Int32)

指定した DataColumnMappingCollection 配列に DataColumnMapping の要素をコピーします。

CreateObjRef(Type)

リモート オブジェクトとの通信に使用するプロキシの生成に必要な情報をすべて格納しているオブジェクトを作成します。

(継承元 MarshalByRefObject)
Equals(Object)

指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetByDataSetColumn(String)

指定した DataColumnMapping 列名が含まれる DataSet オブジェクトを取得します。

GetColumnMappingBySchemaAction(DataColumnMappingCollection, String, MissingMappingAction)

指定した DataColumnMapping、ソース列名、および DataColumnMappingCollection を使用して、MissingMappingAction を取得します。

GetDataColumn(DataColumnMappingCollection, String, Type, DataTable, MissingMappingAction, MissingSchemaAction)

DataColumn オブジェクトをインスタンス化せずに DataColumnMappingCollection オブジェクトを返す静的メソッド。

GetEnumerator()

コレクションを反復処理できる列挙子を取得します。

GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetLifetimeService()
古い.

対象のインスタンスの有効期間ポリシーを制御する、現在の有効期間サービス オブジェクトを取得します。

(継承元 MarshalByRefObject)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
IndexOf(Object)

指定した Object (DataColumnMapping) のコレクション内での位置を取得します。

IndexOf(String)

指定したソース列名が含まれる DataColumnMapping の位置を取得します。

IndexOfDataSetColumn(String)

指定した DataColumnMapping 列名が含まれる DataSet の位置を取得します。

InitializeLifetimeService()
古い.

このインスタンスの有効期間ポリシーを制御する有効期間サービス オブジェクトを取得します。

(継承元 MarshalByRefObject)
Insert(Int32, DataColumnMapping)

DataColumnMapping オブジェクトを DataColumnMappingCollection 内の指定されたインデックス位置に挿入します。

Insert(Int32, Object)

DataColumnMapping オブジェクトを DataColumnMappingCollection 内の指定されたインデックス位置に挿入します。

MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
MemberwiseClone(Boolean)

現在の MarshalByRefObject オブジェクトの簡易コピーを作成します。

(継承元 MarshalByRefObject)
Remove(DataColumnMapping)

指定された DataColumnMapping をコレクションから削除します。

Remove(Object)

Object である DataColumnMapping をコレクションから削除します。

RemoveAt(Int32)

指定したインデックス番号の DataColumnMapping オブジェクトをコレクションから削除します。

RemoveAt(String)

指定したソース列名が含まれる DataColumnMapping オブジェクトをコレクションから削除します。

ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

明示的なインターフェイスの実装

ICollection.IsSynchronized

ICollection へのアクセスが同期されるかどうか (スレッド セーフかどうか) を示す値を取得します。

ICollection.SyncRoot

ICollection へのアクセスを同期するために使用できるオブジェクトを取得します。

IColumnMappingCollection.Add(String, String)

ソース列名と DataColumnMapping 列名を使用して、DataColumnMappingCollection オブジェクトを DataSet に追加します。

IColumnMappingCollection.GetByDataSetColumn(String)

指定された DataColumnMapping 列名を持つ DataSet オブジェクトを取得します。

IColumnMappingCollection.Item[String]

指定した SourceColumn 名で IColumnMapping オブジェクトを取得または設定します。

IList.IsFixedSize

IList が固定サイズかどうかを示す値を取得します。

IList.IsReadOnly

IList が読み取り専用かどうかを示す値を取得します。

IList.Item[Int32]

指定したインデックスにある要素を取得または設定します。

拡張メソッド

Cast<TResult>(IEnumerable)

IEnumerable の要素を、指定した型にキャストします。

OfType<TResult>(IEnumerable)

指定された型に基づいて IEnumerable の要素をフィルター処理します。

AsParallel(IEnumerable)

クエリの並列化を有効にします。

AsQueryable(IEnumerable)

IEnumerableIQueryable に変換します。

適用対象

こちらもご覧ください