CodeAnalysisProgress.AddIncompleteItems(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 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)).
public static Microsoft.CodeAnalysis.CodeAnalysisProgress AddIncompleteItems (int count, string? description = default);
static member AddIncompleteItems : int * string -> Microsoft.CodeAnalysis.CodeAnalysisProgress
Public Shared Function AddIncompleteItems (count As Integer, Optional description As String = Nothing) As CodeAnalysisProgress
Parameters
- count
- Int32
The number of incomplete items left to perform.
- description
- String
Optional description to update the UI to.
Returns
Examples
progress.Report(CodeAnalysisProgress.AddIncompleteItems(20));