DataColumnMappingCollection クラス
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
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
- 継承
- 実装
次の例では、 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
Count |
コレクション内の DataColumnMapping オブジェクト数を取得します。 |
Item[Int32] |
指定したインデックスの位置にある DataColumnMapping オブジェクトを取得または設定します。 |
Item[String] |
指定したソース列名が含まれる DataColumnMapping オブジェクトを取得または設定します。 |
ICollection. |
ICollection へのアクセスが同期されるかどうか (スレッド セーフかどうか) を示す値を取得します。 |
ICollection. |
ICollection へのアクセスを同期するために使用できるオブジェクトを取得します。 |
IColumn |
ソース列名と DataColumnMapping 列名を使用して、DataColumnMappingCollection オブジェクトを DataSet に追加します。 |
IColumn |
指定された DataColumnMapping 列名を持つ DataSet オブジェクトを取得します。 |
IColumn |
指定した |
IList. |
IList が固定サイズかどうかを示す値を取得します。 |
IList. |
IList が読み取り専用かどうかを示す値を取得します。 |
IList. |
指定したインデックスにある要素を取得または設定します。 |
Cast<TResult>(IEnumerable) |
IEnumerable の要素を、指定した型にキャストします。 |
Of |
指定された型に基づいて IEnumerable の要素をフィルター処理します。 |
As |
クエリの並列化を有効にします。 |
As |
IEnumerable を IQueryable に変換します。 |
製品 | バージョン |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
.NET に関するフィードバック
.NET はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。