Freigeben über


DataCommand.ExecuteWithoutResults-Methode (String, DataCommandType)

Führt aus, aber einen Befehl erfordert keine Ergebnisse und stattdessen gibt eine ganze Zahl zurück, die das Ergebnis des Aufrufs angibt.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Public Function ExecuteWithoutResults ( _
    command As String, _
    commandType As DataCommandType _
) As Integer
public int ExecuteWithoutResults(
    string command,
    DataCommandType commandType
)
public:
virtual int ExecuteWithoutResults(
    String^ command, 
    DataCommandType commandType
) sealed
abstract ExecuteWithoutResults : 
        command:string * 
        commandType:DataCommandType -> int  
override ExecuteWithoutResults : 
        command:string * 
        commandType:DataCommandType -> int
public final function ExecuteWithoutResults(
    command : String, 
    commandType : DataCommandType
) : int

Parameter

  • command
    Typ: String

    Ein Befehl, der ausgeführt wird, der einer Datenquelle bestimmt ist.

Rückgabewert

Typ: Int32
Ein ganzzahliger anbieterspezifischer Statuscode DDEX.

Implementiert

IVsDataCommand.ExecuteWithoutResults(String, DataCommandType)

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

Der command-Parameter ist nullein Nullverweis (Nothing in Visual Basic).

Hinweise

In vielen Fällen ist das Ergebnis des Aufrufs an diese Methode der Anzahl der betroffenen Zeilen an.

Hinweis

Andere Ausnahmen, die auftreten, geben an, dass die Ausführung für einen Anbieter-angegebenen Grund fehlgeschlagen ist.

.NET Framework-Sicherheit

Siehe auch

Referenz

DataCommand Klasse

ExecuteWithoutResults-Überladung

Microsoft.VisualStudio.Data.Framework-Namespace