DataAsyncCommand.DeriveParametersAsync 方法

派生,以异步方式,将参数设置为具有指定的命令的使用。

命名空间:  Microsoft.VisualStudio.Data.Framework
程序集:  Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.dll 中)

语法

声明
Public Sub DeriveParametersAsync ( _
    command As String, _
    commandType As DataCommandType, _
    commandTimeout As Integer, _
    userState As Object _
)
public void DeriveParametersAsync(
    string command,
    DataCommandType commandType,
    int commandTimeout,
    Object userState
)
public:
virtual void DeriveParametersAsync(
    String^ command, 
    DataCommandType commandType, 
    int commandTimeout, 
    Object^ userState
) sealed
abstract DeriveParametersAsync : 
        command:string * 
        commandType:DataCommandType * 
        commandTimeout:int * 
        userState:Object -> unit 
override DeriveParametersAsync : 
        command:string * 
        commandType:DataCommandType * 
        commandTimeout:int * 
        userState:Object -> unit 
public final function DeriveParametersAsync(
    command : String, 
    commandType : DataCommandType, 
    commandTimeout : int, 
    userState : Object
)

参数

  • commandTimeout
    类型:System.Int32
    时间,秒,在前命令超时。
  • userState
    类型:System.Object
    异步的唯一标识符处理。

实现

IVsDataAsyncCommand.DeriveParametersAsync(String, DataCommandType, Int32, Object)

异常

异常 条件
ArgumentNullException

command 或 userState 参数为 nullnull 引用(在 Visual Basic 中为 Nothing)。

ArgumentOutOfRangeException

commandTimeout 参数小于 -1。

备注

此方法继续操作并 DeriveParameters 方法相同,但是,以异步方式。

如果 commandTimeout 参数的值为0,不超时(或,超时是无限大的);如果该值为-1,超时时间是数据提供者该设置。

userState 参数唯一标识该特定异步操作并将作为 DeriveParametersCompleted 事件的事件参数的一部分,以便侦听器可以确定异步进程完成。

说明说明

发生的其他异常指示参数派生为一个提供程序指定的原因而失败。

.NET Framework 安全性

请参见

参考

DataAsyncCommand 类

Microsoft.VisualStudio.Data.Framework 命名空间