DataTableMapping.ColumnMappings DataTableMapping.ColumnMappings DataTableMapping.ColumnMappings DataTableMapping.ColumnMappings Property


DataColumnMappingCollection에 대한 DataTable를 가져옵니다.Gets the DataColumnMappingCollection for the DataTable.

 property System::Data::Common::DataColumnMappingCollection ^ ColumnMappings { System::Data::Common::DataColumnMappingCollection ^ get(); };
public System.Data.Common.DataColumnMappingCollection ColumnMappings { get; }
member this.ColumnMappings : System.Data.Common.DataColumnMappingCollection
Public ReadOnly Property ColumnMappings As DataColumnMappingCollection

속성 값

데이터 열 매핑 컬렉션입니다.A data column mapping collection.


다음 예제에서는 DataTableMapping 개체를 설정 하는 해당 속성과 복사의 일부 해당 ColumnMappings 배열입니다.The following example creates a DataTableMapping object, sets some of its properties, and copies its ColumnMappings to an array. 이 예에서는 가정 하는 DataColumnMappingCollection 만들었습니다.This example assumes that a DataColumnMappingCollection has been created.

public void CreateDataTableMapping() 
    // ...
    // create mappings
    // ...
    DataColumnMapping[] columns = {};
    // Copy mappings to array    
    mappings.CopyTo(columns, 0);
    DataTableMapping mapping =
        new DataTableMapping("Categories", "DataCategories", columns);    
Public Sub CreateDataTableMapping()
    ' ...
    ' create mappings
    ' ...
    Dim columns() As DataColumnMapping
    ' Copy mappings to array
    mappings.CopyTo(columns, 0)
    Dim mapping As New DataTableMapping _
       ("Categories", "DataCategories", columns)
End Sub

적용 대상

추가 정보