AbstractUIThreadOperationContext Klasse

Definition

Abstrakte Basis Implementierung der- IUIThreadOperationContext Schnittstelle.

public ref class AbstractUIThreadOperationContext abstract : IDisposable, Microsoft::VisualStudio::Utilities::IPropertyOwner, Microsoft::VisualStudio::Utilities::IUIThreadOperationContext
public abstract class AbstractUIThreadOperationContext : IDisposable, Microsoft.VisualStudio.Utilities.IPropertyOwner, Microsoft.VisualStudio.Utilities.IUIThreadOperationContext
type AbstractUIThreadOperationContext = class
    interface IUIThreadOperationContext
    interface IPropertyOwner
    interface IDisposable
Public MustInherit Class AbstractUIThreadOperationContext
Implements IDisposable, IPropertyOwner, IUIThreadOperationContext
Vererbung
AbstractUIThreadOperationContext
Implementiert

Konstruktoren

AbstractUIThreadOperationContext(Boolean, String)

Erstellt eine neue Instanz der AbstractUIThreadOperationContext.

Eigenschaften

AllowCancellation

Ruft ab, ob der Vorgang abgebrochen werden kann.

CompletedItems
Description

Ruft eine lesbare Vorgangs Beschreibung ab, die aus der anfänglichen Kontext Beschreibung oder Beschreibungen aller aktuell hinzugefügten Bereiche besteht.

Properties

Eine Auflistung von Eigenschaften.

Scopes

Ruft die aktuelle Liste der IUIThreadOperationScope s in diesem Kontext ab.

TotalItems
UserCancellationToken

Abbruch Token zum Abbrechen des Vorgangs.

Methoden

AddScope(Boolean, String)

Fügt einen UI-Thread Vorgangs Bereich mit seiner eigenen ablaufbarkeits-, Beschreibungs-und Fortschritts Protokollierung hinzu. Der Bereich wird beim verwerfen aus dem Kontext entfernt.

Dispose()

Verwirft diese Instanz.

OnScopeChanged(IUIThreadOperationScope)
OnScopeDisposed(IUIThreadOperationScope)
OnScopeProgressChanged(IUIThreadOperationScope)
OnScopesChanged()

Wird aufgerufen, wenn neue IUIThreadOperationScope s hinzugefügt oder verworfen werden.

TakeOwnership()

Ermöglicht es einer Komponente, den vollständigen Besitz dieses UI-Thread Vorgangs zu übernehmen, z. b. Wenn Sie ein eigenes modales UI-Dialogfeld anzeigt und die ablaufbarkeit über dieses Dialogfeld verarbeitet

Gilt für