When implemented by a class, executes a command in an asynchronous manner.
Namespace: Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Syntax
'宣言
Sub ExecuteAsync ( _
command As String, _
commandType As DataCommandType, _
parameters As IVsDataParameter(), _
commandTimeout As Integer, _
userState As Object _
)
'使用
Dim instance As IVsDataAsyncCommand
Dim command As String
Dim commandType As DataCommandType
Dim parameters As IVsDataParameter()
Dim commandTimeout As Integer
Dim userState As Object
instance.ExecuteAsync(command, commandType, _
parameters, commandTimeout, userState)
void ExecuteAsync(
string command,
DataCommandType commandType,
IVsDataParameter[] parameters,
int commandTimeout,
Object userState
)
void ExecuteAsync(
String^ command,
DataCommandType commandType,
array<IVsDataParameter^>^ parameters,
int commandTimeout,
Object^ userState
)
function ExecuteAsync(
command : String,
commandType : DataCommandType,
parameters : IVsDataParameter[],
commandTimeout : int,
userState : Object
)
Parameters
command
Type: System.StringThe command to be executed.
commandType
Type: Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandTypeA value from the DataCommandType enumeration representing the command type for the indicated command, specifying how to interpret the contents of the command parameter.
parameters
Type: []A list of parameters to pass with the command.
commandTimeout
Type: System.Int32Amount of time, in seconds, before which the command times out.
userState
Type: System.ObjectThe object on which this method calls back as the command progresses.
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.
See Also
Reference
Microsoft.VisualStudio.Data.Services.SupportEntities Namespace