DataColumnMappingCollection.Remove DataColumnMappingCollection.Remove DataColumnMappingCollection.Remove DataColumnMappingCollection.Remove Method

정의

컬렉션에서 지정된 개체를 제거합니다.Removes a specified object from the collection.

오버로드

Remove(DataColumnMapping) Remove(DataColumnMapping) Remove(DataColumnMapping) Remove(DataColumnMapping)

지정된 DataColumnMapping를 컬렉션에서 제거합니다.Removes the specified DataColumnMapping from the collection.

Remove(Object) Remove(Object) Remove(Object) Remove(Object)

ObjectDataColumnMapping를 컬렉션에서 제거합니다.Removes the Object that is a DataColumnMapping from the collection.

Remove(DataColumnMapping) Remove(DataColumnMapping) Remove(DataColumnMapping) Remove(DataColumnMapping)

지정된 DataColumnMapping를 컬렉션에서 제거합니다.Removes the specified DataColumnMapping from the collection.

public:
 void Remove(System::Data::Common::DataColumnMapping ^ value);
public void Remove (System.Data.Common.DataColumnMapping value);
member this.Remove : System.Data.Common.DataColumnMapping -> unit
Public Sub Remove (value As DataColumnMapping)

매개 변수

추가 정보

Remove(Object) Remove(Object) Remove(Object) Remove(Object)

ObjectDataColumnMapping를 컬렉션에서 제거합니다.Removes the Object that is a DataColumnMapping from the collection.

public:
 virtual void Remove(System::Object ^ value);
public void Remove (object value);
abstract member Remove : obj -> unit
override this.Remove : obj -> unit
Public Sub Remove (value As Object)

매개 변수

value
Object Object Object Object

제거할 ObjectDataColumnMapping입니다.The Object that is the DataColumnMapping to remove.

구현

예외

지정된 개체가 DataColumnMapping 개체가 아닌 경우The object specified was not a DataColumnMapping object.

컬렉션에 지정된 개체가 없는 경우The object specified is not in the collection.

예제

다음 예에서는 검색을 DataColumnMapping 컬렉션 내에서.The following example searches for a DataColumnMapping within the collection. 매핑이 컬렉션에 있으면 제거 됩니다.If the mapping exists in the collection, it is removed. 컬렉션 내의 매핑이 없으면 컬렉션에 추가 되 고 해당 항목이 있는 인덱스 표시 됩니다.If the mapping does not exist within the collection, it is added to the collection and its index is displayed. 가정 합니다는 DataColumnMappingCollection 컬렉션 및 DataColumnMapping 개체를 만들었습니다.The example assumes that a DataColumnMappingCollection collection and a DataColumnMapping object have been created.

public void ChangedMyMind() 
{
    // ...
    // create mappings and mapping
    // ...
    if (mappings.Contains((Object) mapping))
        mappings.Remove((Object) mapping);
    else 
    {
        mappings.Add((Object) mapping);
        Console.WriteLine("Index of new mapping: "
            + mappings.IndexOf((Object) mapping));
    }
}
Public Sub ChangedMyMind()
    ' ...
    ' create mappings and mapping
    ' ...
    If mappings.Contains(CType(mapping, Object)) Then
        mappings.Remove(CType(mapping, Object))
    Else
        mappings.Add(CType(mapping, Object))
        Console.WriteLine("Index of new mapping: " + _
           mappings.IndexOf(CType(mapping, Object)).ToString())
    End If
End Sub
추가 정보

적용 대상