共用方式為


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)

將異步執行-沒有結果的作業分派至同步 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>)

適用於