Partager via


AdoDotNetObjectSelector.ApplyMappings, méthode

Applique les mappages de sélection.

Espace de noms :  Microsoft.VisualStudio.Data.Framework.AdoDotNet
Assembly :  Microsoft.VisualStudio.Data.Framework (dans Microsoft.VisualStudio.Data.Framework.dll)

Syntaxe

'Déclaration
Protected Shared Sub ApplyMappings ( _
    dataTable As DataTable, _
    mappings As IDictionary(Of String, Object) _
)
protected static void ApplyMappings(
    DataTable dataTable,
    IDictionary<string, Object> mappings
)
protected:
static void ApplyMappings(
    DataTable^ dataTable, 
    IDictionary<String^, Object^>^ mappings
)
static member ApplyMappings : 
        dataTable:DataTable * 
        mappings:IDictionary<string, Object> -> unit
protected static function ApplyMappings(
    dataTable : DataTable, 
    mappings : IDictionary<String, Object>
)

Paramètres

  • dataTable
    Type : DataTable

    Le schéma retourné par l'appel à la méthode d' GetSchema .

  • mappings
    Type : IDictionary<String, Object>

    Paires clé/valeur contenant les mappages de sélection.

Exceptions

Exception Condition
ArgumentNullException

Le paramètre schema est nullune référence null (Nothing en Visual Basic).

Sécurité .NET Framework

Voir aussi

Référence

AdoDotNetObjectSelector Classe

Microsoft.VisualStudio.Data.Framework.AdoDotNet, espace de noms