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
구현

예제

다음 예제에서는 를 사용하여 컬렉션에 Add 여러 DataColumnMapping 개체를 ColumnMappings 사용한 DataTableMapping 다음 매핑된 원본 열의 목록을 표시합니다. 이 예제에서는 가 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)

지정된 DataColumnMappingDataColumnMappingCollection, 소스 열 이름 및 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)

ObjectDataColumnMapping를 컬렉션에서 제거합니다.

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로 변환합니다.

적용 대상

추가 정보