Executes a command but does not request results, instead returning an integer indicating the outcome of the call.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'宣言
Public Function ExecuteWithoutResults ( _
command As String _
) As Integer
'使用
Dim instance As DataCommand
Dim command As String
Dim returnValue As Integer
returnValue = instance.ExecuteWithoutResults(command)
public int ExecuteWithoutResults(
string command
)
public:
virtual int ExecuteWithoutResults(
String^ command
) sealed
public final function ExecuteWithoutResults(
command : String
) : int
Parameters
command
Type: System.StringA command to execute that is specific to a data source.
Return Value
Type: System.Int32
A DDEX provider–specific integer status code.
Implements
IVsDataCommand.ExecuteWithoutResults(String)
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The command parameter is a null reference (Nothing in Visual Basic). |
Remarks
In many cases, the outcome of the call to this method will indicate the number of rows affected.
注意
Other exceptions that occur indicate that the execution failed for a provider-specified reason.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.