DataCommand.ExecuteWithoutResults Method (String, DataCommandType)
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
'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
Parameters
command
Type: System.StringA command to execute that is specific to a data source.
commandType
Type: Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandTypeThe type of the command that specifies how to interpret the contents of the command parameter. The command type could either be a value from the DataCommandType enumeration or a custom command type defined by a provider, which can be passed in by forcing a cast from an integer to the DataCommandType enumeration.
Return Value
Type: System.Int32
A DDEX provider–specific integer status code.
Implements
IVsDataCommand.ExecuteWithoutResults(String, DataCommandType)
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The command parameter is nulla 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.
Note
Other exceptions that occur indicate that the execution failed for a provider-specified reason.
.NET Framework Security
- 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.