DataAsyncCommand.OnExecute Method
Dispatches the asynchronous execute operation to the synchronous Execute method call.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'Declaration
Protected Overridable Function OnExecute ( _
command As String, _
commandType As DataCommandType, _
parameters As IVsDataParameter(), _
commandTimeout As Integer _
) As IVsDataReader
protected virtual IVsDataReader OnExecute(
string command,
DataCommandType commandType,
IVsDataParameter[] parameters,
int commandTimeout
)
protected:
virtual IVsDataReader^ OnExecute(
String^ command,
DataCommandType commandType,
array<IVsDataParameter^>^ parameters,
int commandTimeout
)
abstract OnExecute :
command:string *
commandType:DataCommandType *
parameters:IVsDataParameter[] *
commandTimeout:int -> IVsDataReader
override OnExecute :
command:string *
commandType:DataCommandType *
parameters:IVsDataParameter[] *
commandTimeout:int -> IVsDataReader
protected function OnExecute(
command : String,
commandType : DataCommandType,
parameters : IVsDataParameter[],
commandTimeout : int
) : IVsDataReader
Parameters
command
Type: System.StringThe command for which the schema is derived.
commandType
Type: Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandTypeA value from the DataCommandType enumeration representing the command type for the indicated command. The value specifies how to interpret the contents of the command parameter.
parameters
Type: array<Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[]A list of parameters to pass with the command.
commandTimeout
Type: System.Int32Amount of time, in seconds, before which the command times out.
Return Value
Type: Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader
An IVsDataReader object, which provides a forward-only, read-only stream from the data source.
.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.