DataCommand.Execute, méthode (String, DataCommandType)

Exécute une commande spécifiée et retourne des résultats en lecture seule.

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

Syntaxe

'Déclaration
Public Function Execute ( _
    command As String, _
    commandType As DataCommandType _
) As IVsDataReader
public IVsDataReader Execute(
    string command,
    DataCommandType commandType
)
public:
virtual IVsDataReader^ Execute(
    String^ command, 
    DataCommandType commandType
) sealed
abstract Execute : 
        command:string * 
        commandType:DataCommandType -> IVsDataReader 
override Execute : 
        command:string * 
        commandType:DataCommandType -> IVsDataReader 
public final function Execute(
    command : String, 
    commandType : DataCommandType
) : IVsDataReader

Paramètres

  • command
    Type : System.String
    Une commande d'exécution spécifique à une source de données.

Valeur de retour

Type : Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader
Un objet d' IVsDataReader , qui fournit un flux avant uniquement en lecture seule de la source de données.

Implémentations

IVsDataCommand.Execute(String, DataCommandType)

Exceptions

Exception Condition
ArgumentNullException

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

Notes

[!REMARQUE]

D'autres exceptions qui se produisent indiquent que l'opération a échoué pour une raison fournisseur- spécifiée.

Sécurité .NET Framework

Voir aussi

Référence

DataCommand Classe

Execute, surcharge

Microsoft.VisualStudio.Data.Framework, espace de noms

DataCommandType

ExecuteWithoutResults