ExecuteCompletedEventArgs 构造函数

创建 ExecuteCompleted 事件将使用的 ExecuteCompletedEventArgs

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

语法

声明
Public Sub New ( _
    exception As Exception, _
    canceled As Boolean, _
    userState As Object, _
    results As IEnumerable, _
    totalCount As Integer _
)
public ExecuteCompletedEventArgs(
    Exception exception,
    bool canceled,
    Object userState,
    IEnumerable results,
    int totalCount
)
public:
ExecuteCompletedEventArgs(
    Exception^ exception, 
    bool canceled, 
    Object^ userState, 
    IEnumerable^ results, 
    int totalCount
)
new : 
        exception:Exception * 
        canceled:bool * 
        userState:Object * 
        results:IEnumerable * 
        totalCount:int -> ExecuteCompletedEventArgs
public function ExecuteCompletedEventArgs(
    exception : Exception, 
    canceled : boolean, 
    userState : Object, 
    results : IEnumerable, 
    totalCount : int
)

参数

  • exception
    类型:Exception

    ,如果存在,则异常将终止处理;否则, nullnull 引用(在 Visual Basic 中为 Nothing)。

  • canceled
    类型:Boolean

    true ,如果处理已取消;否则, false。

  • userState
    类型:Object

    传递给 ExecuteAsyncstate 参数的值称为已执行查询。

  • results
    类型:IEnumerable

    IRepositoryEntry 对象的集合表示可用的扩展名与查询参数。

  • totalCount
    类型:Int32

    与查询参数扩展的数目。

备注

尽管此 API 支持 扩展管理器 基础结构,不建议使用它,因为它可能会发生更改。

.NET Framework 安全性

请参阅

参考

ExecuteCompletedEventArgs 类

Microsoft.VisualStudio.ExtensionManager 命名空间