DataAsyncCommand 类

定义

表示 IVsDataAsyncCommand 接口的实现。

public ref class DataAsyncCommand : Microsoft::VisualStudio::Data::Framework::DataSiteableObject<Microsoft::VisualStudio::Data::Services::IVsDataConnection ^>, Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataAsyncCommand
public class DataAsyncCommand : Microsoft.VisualStudio.Data.Framework.DataSiteableObject<Microsoft.VisualStudio.Data.Services.IVsDataConnection>, Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataAsyncCommand
type DataAsyncCommand = class
    inherit DataSiteableObject<IVsDataConnection>
    interface IVsDataAsyncCommand
Public Class DataAsyncCommand
Inherits DataSiteableObject(Of IVsDataConnection)
Implements IVsDataAsyncCommand
继承
实现

构造函数

DataAsyncCommand()

创建 DataAsyncCommand 类的新实例。

DataAsyncCommand(IVsDataConnection)

使用IVsDataConnection在继承DataSiteableObject<T>的对象DataAsyncCommand上设置的 对象初始化 对象的新实例。

属性

Site

获取或设置对象站点。

(继承自 DataSiteableObject<T>)

方法

CancelAsync(Object)

取消异步调用,立即返回。

DeriveParametersAsync(String, DataCommandType, Int32, Object)

以异步方式派生一组用于指定命令的参数。

DeriveSchemaAsync(String, DataCommandType, IVsDataParameter[], Int32, Object)

以异步方式派生指定命令的架构。

ExecuteAsync(String, DataCommandType, IVsDataParameter[], Int32, Object)

以异步方式执行命令。

ExecuteWithoutResultsAsync(String, DataCommandType, IVsDataParameter[], Int32, Object)

以异步方式执行一个命令,该命令不返回指示状态的整数值以外的任何结果。

OnCancel(Object)

将异步取消操作调度到相应的同步方法。

OnDeriveParameters(String, DataCommandType, Int32)

将异步派生参数操作调度到同步 DeriveParameters(String, DataCommandType, Int32) 方法调用。

OnDeriveParametersCompleted(DataAsyncCommandCompletedEventArgs<IVsDataParameter[]>)

引发 DeriveParametersCompleted 事件。

OnDeriveSchema(String, DataCommandType, IVsDataParameter[], Int32)

将异步派生架构操作调度到同步 DeriveSchema(String, DataCommandType, IVsDataParameter[], Int32) 方法调用。

OnDeriveSchemaCompleted(DataAsyncCommandCompletedEventArgs<IVsDataReader>)

引发 DeriveSchemaCompleted 事件。

OnExecute(String, DataCommandType, IVsDataParameter[], Int32)

将异步执行操作调度到同步 Execute(String, DataCommandType, IVsDataParameter[], Int32) 方法调用。

OnExecuteCompleted(DataAsyncCommandCompletedEventArgs<IVsDataReader>)

引发 ExecuteCompleted 事件。

OnExecuteWithoutResults(String, DataCommandType, IVsDataParameter[], Int32)

将异步 execute-without-results 操作调度到同步 ExecuteWithoutResults(String, DataCommandType, IVsDataParameter[], Int32) 方法调用。

OnExecuteWithoutResultsCompleted(DataAsyncCommandCompletedEventArgs<Int32>)

引发 ExecuteWithoutResultsCompleted 事件。

OnPrepare(String, DataCommandType, IVsDataParameter[], Int32)

将异步准备操作调度到同步 Prepare(String, DataCommandType, IVsDataParameter[], Int32) 方法调用。

OnPrepareCompleted(DataAsyncCommandCompletedEventArgs<String>)

引发 PrepareCompleted 事件。

OnSiteChanged(EventArgs)

引发 SiteChanged 事件。

(继承自 DataSiteableObject<T>)
PrepareAsync(String, DataCommandType, IVsDataParameter[], Int32, Object)

以异步方式准备要对数据源执行的指定命令;然后,可以使用不同的参数多次执行命令。

事件

DeriveParametersCompleted

在命令完成时 DeriveParametersAsync(String, DataCommandType, Int32, Object) 发生。

DeriveSchemaCompleted

在命令完成时 DeriveSchemaAsync(String, DataCommandType, IVsDataParameter[], Int32, Object) 发生。

ExecuteCompleted

在命令完成时 ExecuteAsync(String, DataCommandType, IVsDataParameter[], Int32, Object) 发生。

ExecuteWithoutResultsCompleted

在命令完成时 ExecuteWithoutResultsAsync(String, DataCommandType, IVsDataParameter[], Int32, Object) 发生。

PrepareCompleted

在命令完成时 PrepareAsync(String, DataCommandType, IVsDataParameter[], Int32, Object) 发生。

SiteChanged

Site 属性更改时发生。

(继承自 DataSiteableObject<T>)

适用于