CodeAnalysisProgress.AddCompleteItems(Int32, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)).
public static Microsoft.CodeAnalysis.CodeAnalysisProgress AddCompleteItems (int count, string? description = default);
static member AddCompleteItems : int * string -> Microsoft.CodeAnalysis.CodeAnalysisProgress
Public Shared Function AddCompleteItems (count As Integer, Optional description As String = Nothing) As CodeAnalysisProgress
Parameters
- count
- Int32
The number of items that were completed. Must be greater than or equal to 1.
- description
- String
Optional description to update the UI to.
Returns
Examples
progress.Report(CodeAnalysisProgress.CompleteItem());