DataTableMappingCollection.RemoveAt Méthode
Définition
Supprime l'objet DataTableMapping spécifié de la collection.Removes the specified DataTableMapping object from the collection.
Surcharges
RemoveAt(Int32) |
Supprime de la collection l'objet DataTableMapping situé à l'index spécifié.Removes the DataTableMapping object located at the specified index from the collection. |
RemoveAt(String) |
Supprime de la collection l'objet DataTableMapping portant le nom de table source spécifié.Removes the DataTableMapping object with the specified source table name from the collection. |
RemoveAt(Int32)
Supprime de la collection l'objet DataTableMapping situé à l'index spécifié.Removes the DataTableMapping object located at 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)
Paramètres
- index
- Int32
Index de base zéro de l'objet DataTableMapping à supprimer.The zero-based index of the DataTableMapping object to remove.
Implémente
Exceptions
Il n'existe aucun objet DataTableMapping à l'index spécifié.A DataTableMapping object does not exist with the specified index.
Exemples
L’exemple suivant recherche un DataTableMapping objet avec le nom de table source donné dans une DataTableMappingCollection collection.The following example searches for a DataTableMapping object with the given source table name within a DataTableMappingCollection collection. DataTableMapping Si existe, le mappage est supprimé.If the DataTableMapping exists, the mapping is removed. Cet exemple suppose qu’une DataTableMappingCollection collection a été créée.This example assumes that a DataTableMappingCollection collection has been created.
public void RemoveDataTableMapping()
{
// ...
// create mappings
// ...
if (mappings.Contains(7))
mappings.RemoveAt(7);
}
Public Sub RemoveDataTableMapping()
' ...
' create mappings
' ...
If mappings.Contains(7) Then
mappings.RemoveAt(7)
End If
End Sub
RemoveAt(String)
Supprime de la collection l'objet DataTableMapping portant le nom de table source spécifié.Removes the DataTableMapping object with the specified source table name from the collection.
public:
virtual void RemoveAt(System::String ^ sourceTable);
public void RemoveAt (string sourceTable);
abstract member RemoveAt : string -> unit
override this.RemoveAt : string -> unit
Public Sub RemoveAt (sourceTable As String)
Paramètres
- sourceTable
- String
Nom de table source qui respecte la casse à rechercher.The case-sensitive source table name to find.
Implémente
Exceptions
Il n'existe aucun objet DataTableMapping portant le nom de table source spécifié.A DataTableMapping object does not exist with the specified source table name.
Exemples
L’exemple suivant recherche un DataTableMapping objet avec le nom de table source donné dans une DataTableMappingCollection collection.The following example searches for a DataTableMapping object with the given source table name within a DataTableMappingCollection collection. DataTableMapping Si existe, le mappage est supprimé.If the DataTableMapping exists, the mapping is removed. Cet exemple suppose qu’une DataTableMappingCollection collection a été créée.This example assumes that a DataTableMappingCollection collection has been created.
public void RemoveDataTableMapping()
{
// ...
// create mappings
// ...
if (mappings.Contains("Categories"))
mappings.RemoveAt("Categories");
}
Public Sub RemoveDataTableMapping()
' ...
' create mappings
' ...
If mappings.Contains("Categories") Then
mappings.RemoveAt("Categories")
End If
End Sub