IVsGeneratorProgress::Progress Method (UInt32, UInt32)

 

Sets an index that specifies how much of the generation has been completed.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int Progress(
	unsigned int nComplete,
	unsigned int nTotal
)

Parameters

nComplete
Type: System::UInt32

[in] Index that specifies how much of the generation has been completed. This value can range from zero to nTotal..

nTotal
Type: System::UInt32

[in] The maximum value for nComplete.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From vsshell.idl:

HRESULT IVsGeneratorProgress::Progress(

   [in] ULONG nComplete,

   [in] ULONG nTotal

);

The percent of the generation that has been completed is calculated by the project system as (nComplete / nTotal) * 100.

The Visual Basic and Visual C# project systems do not display custom tool progress to the user. However, custom tools should still implement this method to take advantage of progress reporting that may be available in a future version of Visual Studio.

Return to top
Show: