AbstractUIThreadOperationContext(Boolean, String) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建 AbstractUIThreadOperationContext 的新实例。
public:
AbstractUIThreadOperationContext(bool allowCancellation, System::String ^ defaultDescription);
public AbstractUIThreadOperationContext (bool allowCancellation, string defaultDescription);
new Microsoft.VisualStudio.Utilities.AbstractUIThreadOperationContext : bool * string -> Microsoft.VisualStudio.Utilities.AbstractUIThreadOperationContext
Public Sub New (allowCancellation As Boolean, defaultDescription As String)
参数
- allowCancellation
- Boolean
属性的初始值,在将 AllowCancellation 新的作用域添加到上下文时,此值可以更改。
- defaultDescription
- String
属性的默认值 Description ,在将新的作用域添加到上下文中时,该属性可能会更改。