DataColumnMappingCollection.RemoveAt Yöntem
Tanım
Belirtilen DataColumnMapping nesneyi koleksiyondan kaldırır.Removes the specified DataColumnMapping object from the collection.
Aşırı Yüklemeler
RemoveAt(Int32) |
DataColumnMappingKoleksiyondan belirtilen dizine sahip nesneyi kaldırır.Removes the DataColumnMapping object with the specified index from the collection. |
RemoveAt(String) |
DataColumnMappingBelirtilen kaynak sütun adına sahip nesneyi koleksiyondan kaldırır.Removes the DataColumnMapping object with the specified source column name from the collection. |
RemoveAt(Int32)
DataColumnMappingKoleksiyondan belirtilen dizine sahip nesneyi kaldırır.Removes the DataColumnMapping object with the specified index from the collection.
public:
virtual void RemoveAt(int index);
public void RemoveAt (int index);
abstract member RemoveAt : int -> unit
override this.RemoveAt : int -> unit
Public Sub RemoveAt (index As Integer)
Parametreler
- index
- Int32
Kaldırılacak nesnenin sıfır tabanlı dizini DataColumnMapping .The zero-based index of the DataColumnMapping object to remove.
Uygulamalar
Özel durumlar
DataColumnMappingBelirtilen dizine sahip bir nesne yok.There is no DataColumnMapping object with the specified index.
Örnekler
Aşağıdaki örnek, DataColumnMapping bir koleksiyon içinde verilen dizine sahip bir nesne arar DataColumnMappingCollection .The following example searches for a DataColumnMapping object with the given index within a DataColumnMappingCollection collection. Varsa DataColumnMapping , eşleme kaldırılır.If the DataColumnMapping exists, the mapping is removed. Bu örnek DataColumnMappingCollection , bir koleksiyonun oluşturulduğunu varsayar.This example assumes that a DataColumnMappingCollection collection has been created.
public void RemoveDataColumnMapping()
{
// ...
// create mappings
// ...
if (mappings.Contains(7))
mappings.RemoveAt(7);
}
Public Sub RemoveDataColumnMapping()
' ...
' create mappings
' ...
If mappings.Contains(7) Then
mappings.RemoveAt(7)
End If
End Sub
Ayrıca bkz.
Şunlara uygulanır
RemoveAt(String)
DataColumnMappingBelirtilen kaynak sütun adına sahip nesneyi koleksiyondan kaldırır.Removes the DataColumnMapping object with the specified source column name from the collection.
public:
virtual void RemoveAt(System::String ^ sourceColumn);
public void RemoveAt (string sourceColumn);
abstract member RemoveAt : string -> unit
override this.RemoveAt : string -> unit
Public Sub RemoveAt (sourceColumn As String)
Parametreler
- sourceColumn
- String
Büyük/küçük harfe duyarlı kaynak sütun adı.The case-sensitive source column name.
Uygulamalar
Özel durumlar
DataColumnMappingBelirtilen kaynak sütun adına sahip bir nesne yok.There is no DataColumnMapping object with the specified source column name.
Örnekler
Aşağıdaki örnek, DataColumnMapping bir koleksiyon içinde verilen kaynak sütun adına sahip bir nesne arar DataColumnMappingCollection .The following example searches for a DataColumnMapping object with the given source column name within a DataColumnMappingCollection collection. Varsa DataColumnMapping , eşleme kaldırılır.If the DataColumnMapping exists, the mapping is removed. Bu örnek DataColumnMappingCollection , bir koleksiyonun oluşturulduğunu varsayar.This example assumes that a DataColumnMappingCollection collection has been created.
public void RemoveDataColumnMapping()
{
// ...
// create columnMappings
// ...
if (columnMappings.Contains("Picture"))
columnMappings.RemoveAt("Picture");
}
Public Sub RemoveDataColumnMapping()
' ...
' create columnMappings
' ...
If columnMappings.Contains("Picture") Then
columnMappings.RemoveAt("Picture")
End If
End Sub