DataColumnMappingCollection.GetByDataSetColumn(String) DataColumnMappingCollection.GetByDataSetColumn(String) DataColumnMappingCollection.GetByDataSetColumn(String) DataColumnMappingCollection.GetByDataSetColumn(String) Method

정의

지정된 DataColumnMapping 열 이름을 가진 DataSet 개체를 가져옵니다.Gets the DataColumnMapping object with the specified DataSet column name.

public:
 System::Data::Common::DataColumnMapping ^ GetByDataSetColumn(System::String ^ value);
public System.Data.Common.DataColumnMapping GetByDataSetColumn (string value);
member this.GetByDataSetColumn : string -> System.Data.Common.DataColumnMapping
Public Function GetByDataSetColumn (value As String) As DataColumnMapping

매개 변수

value
String String String String

대/소문자를 구분하지 않는 찾을 DataSet 열의 이름입니다.The name, which is not case-sensitive, of the DataSet column to find.

반환

지정된 DataColumnMapping 열 이름을 가진 DataSet 개체입니다.The DataColumnMapping object with the specified DataSet column name.

예제

다음 예에서는 검색을 DataColumnMapping 컬렉션 내에서.The following example searches for a DataColumnMapping within the collection. 개체가 있으면 반환 됩니다.If the object exists, it is returned. 가정 합니다는 DataColumnMappingCollection 컬렉션 및 DataColumnMapping 개체를 만들었습니다.The example assumes that a DataColumnMappingCollection collection and a DataColumnMapping object have been created.

public void FindDataColumnMapping() 
{
    // ...
    // create mappings and mapping
    // ...
    if (mappings.IndexOfDataSetColumn("datadescription") != -1)
        mapping = mappings.GetByDataSetColumn("datadescription");
}
Public Sub FindDataColumnMapping()
    ' ...
    ' create mappings and mapping
    ' ...
    If mappings.IndexOfDataSetColumn("datadescription") <> - 1 Then
        mapping = mappings.GetByDataSetColumn("datadescription")
    End If
End Sub

적용 대상

추가 정보