共用方式為


IVsDataAsyncCommand 介面

定義

表示以異步方式在數據源上衍生參數、準備、衍生架構及執行命令的能力。

public interface class IVsDataAsyncCommand
[Microsoft.VisualStudio.Data.Core.DataClientObject("38A714F3-E641-4be5-8E92-A26A0F0E920A")]
[Microsoft.VisualStudio.Data.Core.DataDefaultObject("1F0DA31F-1C61-4b96-B1CC-CBF2D3872353")]
public interface IVsDataAsyncCommand
[<Microsoft.VisualStudio.Data.Core.DataClientObject("38A714F3-E641-4be5-8E92-A26A0F0E920A")>]
[<Microsoft.VisualStudio.Data.Core.DataDefaultObject("1F0DA31F-1C61-4b96-B1CC-CBF2D3872353")>]
type IVsDataAsyncCommand = interface
Public Interface IVsDataAsyncCommand
衍生
屬性

方法

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)

以異步方式執行不會傳回任何結果的命令,超出指出狀態的整數值。

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)

適用於