Läs på engelska

Dela via


CodeAnalysisProgress Class

Definition

Represents the progress of an operation. Commonly used to update a UI visible to a user when a long running operation is happening.

C#
public sealed class CodeAnalysisProgress
Inheritance
CodeAnalysisProgress

Constructors

Methods

AddCompleteItems(Int32, String)

When passed to an appropriate IProgress<T>, will indicate that some items of work have transitioned from being incomplete (see AddIncompleteItems(Int32, String) to complete. This is commonly presented with a progress bar. An optional description can also be provided to update the UI accordingly (see Description(String)).

AddIncompleteItems(Int32, String)

When passed to an appropriate IProgress<T>, will add the requested number of incomplete items to the UI showing the progress of the current operation. This is commonly presented with a progress bar. An optional description can also be provided to update the UI accordingly (see Description(String)).

Description(String)

When passed to an appropriate IProgress<T>, will updates the UI showing the progress of the current operation to the specified description.

Applies to

Produkt Versioner
Roslyn 4.9.2, 4.12.2, 4.13.0