DataTableMappingCollection.IndexOfDataSetTable(String) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient l'emplacement de l'objet DataTableMapping portant le nom de table DataSet spécifié.
public:
int IndexOfDataSetTable(System::String ^ dataSetTable);
public int IndexOfDataSetTable (string? dataSetTable);
public int IndexOfDataSetTable (string dataSetTable);
member this.IndexOfDataSetTable : string -> int
Public Function IndexOfDataSetTable (dataSetTable As String) As Integer
Paramètres
- dataSetTable
- String
Nom qui ne respecte pas la casse de la table DataSet
à rechercher.
Retours
Emplacement de base zéro de l'objet DataTableMapping portant le nom de table DataSet donné, ou -1 si l'objet DataTableMapping n'existe pas dans la collection.
Exemples
L’exemple suivant recherche un DataTableMapping dans la collection. Si l’objet existe, il est retourné. L’exemple suppose qu’une DataTableMappingCollection collection et un DataTableMapping objet ont été créés.
public void FindDataTableMapping()
{
// ...
// create mappings and mapping
// ...
if (mappings.IndexOfDataSetTable("datacategories") != -1)
mapping = mappings.GetByDataSetTable("datacategories");
}
Public Sub FindDataTableMapping()
' ...
' create mappings and mapping
' ...
If mappings.IndexOfDataSetTable("datacategories") <> - 1 Then
mapping = mappings.GetByDataSetTable("datacategories")
End If
End Sub
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Prochainement : Tout au long de l'année 2024, nous supprimerons progressivement les GitHub Issues en tant que mécanisme de retour d'information pour le contenu et nous les remplacerons par un nouveau système de retour d'information. Pour plus d’informations, voir:Soumettre et afficher des commentaires pour