DataAsyncCommand.ExecuteWithoutResultsAsync メソッド

、非同期で、状態を示す整数値を超える結果を返さないコマンドを実行します。

名前空間:  Microsoft.VisualStudio.Data.Framework
アセンブリ:  Microsoft.VisualStudio.Data.Framework (Microsoft.VisualStudio.Data.Framework.dll 内)

構文

'宣言
Public Sub ExecuteWithoutResultsAsync ( _
    command As String, _
    commandType As DataCommandType, _
    parameters As IVsDataParameter(), _
    commandTimeout As Integer, _
    userState As Object _
)
public void ExecuteWithoutResultsAsync(
    string command,
    DataCommandType commandType,
    IVsDataParameter[] parameters,
    int commandTimeout,
    Object userState
)
public:
virtual void ExecuteWithoutResultsAsync(
    String^ command, 
    DataCommandType commandType, 
    array<IVsDataParameter^>^ parameters, 
    int commandTimeout, 
    Object^ userState
) sealed
abstract ExecuteWithoutResultsAsync : 
        command:string * 
        commandType:DataCommandType * 
        parameters:IVsDataParameter[] * 
        commandTimeout:int * 
        userState:Object -> unit 
override ExecuteWithoutResultsAsync : 
        command:string * 
        commandType:DataCommandType * 
        parameters:IVsDataParameter[] * 
        commandTimeout:int * 
        userState:Object -> unit 
public final function ExecuteWithoutResultsAsync(
    command : String, 
    commandType : DataCommandType, 
    parameters : IVsDataParameter[], 
    commandTimeout : int, 
    userState : Object
)

パラメーター

  • commandTimeout
    型 : System.Int32
    時間、コマンドがタイムアウト秒単位)。
  • userState
    型 : System.Object
    コマンドが進行すると、このメソッドは呼び出し可能オブジェクト。

実装

IVsDataAsyncCommand.ExecuteWithoutResultsAsync(String, DataCommandType, array<IVsDataParameter[], Int32, Object)

例外

例外 条件
ArgumentNullException

commanduserState かのパラメーターが null です。

ArgumentOutOfRangeException

commandTimeout パラメーターが -1 未満です。

解説

このメソッドは、非同期で ExecuteWithoutResults のメソッドと同じ操作を実行します。

commandTimeout のパラメーターの値が 0 の場合、タイムアウトがありません (または、タイムアウトが無限です) ; 値が -1 の場合、タイムアウト期間は、データ プロバイダーで設定します。

userState のパラメーターは、リスナーが、非同期処理の完了を確認できるように、特定の非同期操作を区別し、ExecuteWithoutResultsCompleted のイベントのイベント引数の一部として渡されます。

[!メモ]

パラメーターは、ほかの例外の派生がプロバイダー指定された理由で失敗したことを示します。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

DataAsyncCommand クラス

Microsoft.VisualStudio.Data.Framework 名前空間

DataCommand