DataColumnMappingCollection クラス
定義
DataColumnMapping オブジェクトのコレクションを含んでいます。Contains a collection of DataColumnMapping objects.
public ref class DataColumnMappingCollection sealed : MarshalByRefObject, System::Collections::IList, System::Data::IColumnMappingCollection
public sealed class DataColumnMappingCollection : MarshalByRefObject, System.Collections.IList, System.Data.IColumnMappingCollection
type DataColumnMappingCollection = class
inherit MarshalByRefObject
interface IColumnMappingCollection
interface IList
interface ICollection
interface IEnumerable
Public NotInheritable Class DataColumnMappingCollection
Inherits MarshalByRefObject
Implements IColumnMappingCollection, IList
- 継承
- 実装
例
次の例ではDataTableMapping 、 Add複数DataColumnMappingのオブジェクトをColumnMappingsコレクションに対して使用し、そのマップされたソース列の一覧を表示します。The following example uses a DataTableMapping to Add several DataColumnMapping objects to its ColumnMappings collection, and then displays a list of those mapped source columns. この例では、 DataTableMappingが既に作成されていることを前提としています。This example assumes that a DataTableMapping has already been created.
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 を作成します。Creates an empty DataColumnMappingCollection. |
プロパティ
Count |
コレクション内の DataColumnMapping オブジェクト数を取得します。Gets the number of DataColumnMapping objects in the collection. |
Item[Int32] |
指定したインデックスの位置にある DataColumnMapping オブジェクトを取得または設定します。Gets or sets the DataColumnMapping object at the specified index. |
Item[String] |
指定したソース列名が含まれる DataColumnMapping オブジェクトを取得または設定します。Gets or sets the DataColumnMapping object with the specified source column name. |
メソッド
Add(Object) |
DataColumnMapping オブジェクトをコレクションに追加します。Adds a DataColumnMapping object to the collection. |
Add(String, String) |
ソース列名と DataColumnMapping 列名を指定すると、DataSet オブジェクトをコレクションに追加します。Adds a DataColumnMapping object to the collection when given a source column name and a DataSet column name. |
AddRange(Array) |
指定した Array の要素をコレクションの末尾にコピーします。Copies the elements of the specified Array to the end of the collection. |
AddRange(DataColumnMapping[]) |
指定した DataColumnMapping 配列の要素をコレクションの末尾にコピーします。Copies the elements of the specified DataColumnMapping array to the end of the collection. |
Clear() |
コレクションからすべての DataColumnMapping オブジェクトを削除します。Removes all DataColumnMapping objects from the collection. |
Contains(Object) |
指定した DataColumnMapping が含まれる Object オブジェクトがコレクション内に存在するかどうかを示す値を取得します。Gets a value indicating whether a DataColumnMapping object with the given Object exists in the collection. |
Contains(String) |
指定したソース列名が含まれる DataColumnMapping オブジェクトがコレクション内に存在するかどうかを示す値を取得します。Gets a value indicating whether a DataColumnMapping object with the given source column name exists in the collection. |
CopyTo(Array, Int32) |
指定した配列に DataColumnMappingCollection の要素をコピーします。Copies the elements of the DataColumnMappingCollection to the specified array. |
CopyTo(DataColumnMapping[], Int32) |
指定した DataColumnMappingCollection 配列に DataColumnMapping の要素をコピーします。Copies the elements of the DataColumnMappingCollection to the specified DataColumnMapping array. |
CreateObjRef(Type) |
リモート オブジェクトとの通信に使用するプロキシの生成に必要な情報をすべて格納しているオブジェクトを作成します。Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (継承元 MarshalByRefObject) |
Equals(Object) |
指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判定します。Determines whether the specified object is equal to the current object. (継承元 Object) |
GetByDataSetColumn(String) |
指定した DataColumnMapping 列名が含まれる DataSet オブジェクトを取得します。Gets the DataColumnMapping object with the specified DataSet column name. |
GetColumnMappingBySchemaAction(DataColumnMappingCollection, String, MissingMappingAction) |
指定した DataColumnMapping、ソース列名、および DataColumnMappingCollection を使用して、MissingMappingAction を取得します。Gets a DataColumnMapping for the specified DataColumnMappingCollection, source column name, and MissingMappingAction. |
GetDataColumn(DataColumnMappingCollection, String, Type, DataTable, MissingMappingAction, MissingSchemaAction) |
DataColumn オブジェクトをインスタンス化せずに DataColumnMappingCollection オブジェクトを返す静的メソッド。A static method that returns a DataColumn object without instantiating a DataColumnMappingCollection object. |
GetEnumerator() |
コレクションを反復処理できる列挙子を取得します。Gets an enumerator that can iterate through the collection. |
GetHashCode() |
既定のハッシュ関数として機能します。Serves as the default hash function. (継承元 Object) |
GetLifetimeService() |
対象のインスタンスの有効期間ポリシーを制御する、現在の有効期間サービス オブジェクトを取得します。Retrieves the current lifetime service object that controls the lifetime policy for this instance. (継承元 MarshalByRefObject) |
GetType() |
現在のインスタンスの Type を取得します。Gets the Type of the current instance. (継承元 Object) |
IndexOf(Object) |
指定した Object (DataColumnMapping) のコレクション内での位置を取得します。Gets the location of the specified Object that is a DataColumnMapping within the collection. |
IndexOf(String) |
指定したソース列名が含まれる DataColumnMapping の位置を取得します。Gets the location of the DataColumnMapping with the specified source column name. |
IndexOfDataSetColumn(String) |
指定した DataColumnMapping 列名が含まれる DataSet の位置を取得します。Gets the location of the specified DataColumnMapping with the given DataSet column name. |
InitializeLifetimeService() |
このインスタンスの有効期間ポリシーを制御する有効期間サービス オブジェクトを取得します。Obtains a lifetime service object to control the lifetime policy for this instance. (継承元 MarshalByRefObject) |
Insert(Int32, DataColumnMapping) |
DataColumnMapping オブジェクトを DataColumnMappingCollection 内の指定されたインデックス位置に挿入します。Inserts a DataColumnMapping object into the DataColumnMappingCollection at the specified index. |
Insert(Int32, Object) |
DataColumnMapping オブジェクトを DataColumnMappingCollection 内の指定されたインデックス位置に挿入します。Inserts a DataColumnMapping object into the DataColumnMappingCollection at the specified index. |
MemberwiseClone() |
現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object. (継承元 Object) |
MemberwiseClone(Boolean) |
現在の MarshalByRefObject オブジェクトの簡易コピーを作成します。Creates a shallow copy of the current MarshalByRefObject object. (継承元 MarshalByRefObject) |
Remove(DataColumnMapping) |
指定された DataColumnMapping をコレクションから削除します。Removes the specified DataColumnMapping from the collection. |
Remove(Object) |
Object である DataColumnMapping をコレクションから削除します。Removes the Object that is a DataColumnMapping from the collection. |
RemoveAt(Int32) |
指定したインデックス番号の DataColumnMapping オブジェクトをコレクションから削除します。Removes the DataColumnMapping object with the specified index from the collection. |
RemoveAt(String) |
指定したソース列名が含まれる DataColumnMapping オブジェクトをコレクションから削除します。Removes the DataColumnMapping object with the specified source column name from the collection. |
ToString() |
現在のオブジェクトを表す string を返します。Returns a string that represents the current object. (継承元 Object) |
明示的なインターフェイスの実装
ICollection.IsSynchronized |
ICollection へのアクセスが同期されている (スレッド セーフである) かどうかを示す値を取得します。Gets a value that indicates whether access to the ICollection is synchronized (thread safe). |
ICollection.SyncRoot |
ICollection へのアクセスを同期するために使用できるオブジェクトを取得します。Gets an object that can be used to synchronize access to the ICollection. |
IColumnMappingCollection.Add(String, String) |
ソース列名と DataColumnMapping 列名を使用して、DataColumnMappingCollection オブジェクトを DataSet に追加します。Adds a DataColumnMapping object to the DataColumnMappingCollection by using the source column and DataSet column names. |
IColumnMappingCollection.GetByDataSetColumn(String) |
指定された DataColumnMapping 列名を持つ DataSet オブジェクトを取得します。Gets the DataColumnMapping object that has the specified DataSet column name. |
IColumnMappingCollection.Item[String] |
指定した |
IList.IsFixedSize |
IList が固定サイズかどうかを示す値を取得します。Gets a value that indicates whether the IList has a fixed size. |
IList.IsReadOnly |
IList が読み取り専用かどうかを示す値を取得します。Gets a value that indicates whether the IList is read-only. |
IList.Item[Int32] |
指定したインデックスにある要素を取得または設定します。Gets or sets the element at the specified index. |
拡張メソッド
Cast<TResult>(IEnumerable) |
IEnumerable の要素を、指定した型にキャストします。Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
指定された型に基づいて IEnumerable の要素をフィルター処理します。Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
クエリの並列化を有効にします。Enables parallelization of a query. |
AsQueryable(IEnumerable) |
IEnumerable を IQueryable に変換します。Converts an IEnumerable to an IQueryable. |