创建 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
类型:Booleantrue ,如果处理已取消;否则, false。
userState
类型:Object传递给 ExecuteAsyncstate 参数的值称为已执行查询。
results
类型:IEnumerable的 IRepositoryEntry 对象的集合表示可用的扩展名与查询参数。
totalCount
类型:Int32与查询参数扩展的数目。
备注
尽管此 API 支持 扩展管理器 基础结构,不建议使用它,因为它可能会发生更改。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。