IVsReferenceManagerUserReloadRequired::ApplyReloadRequiredReferenceChanges Method (Boolean)

Visual Studio 2015
 

Reference Manager calls this method once when it is actually time to apply any changes that require re loading of the project to make the updates. Projects that have reference changes that require reloading the project can add them to a queue when IVsReferenceManagerUser.ChangeReferences is called rather than applying them immediately and forcing possibly multiple project reloads. After all changes from all referenceProviderContexts have been propagated, then the ReferenceManager dialog will make a single call to ApplyReloadRequiredReferenceChanges. The Expected behavior is to apply all possible changes that were queued up by prior calls to IVsReferenceManagerUser.ChangeReferences and return a single error through HRESULT+IErrorInfo mechanism. If the reference changes are being aborted for any reason, then ApplyReloadRequiredReferenceChanges(cancelOperation:true) will be called to give the project a chance to clean up any state it has queued.

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

int ApplyReloadRequiredReferenceChanges(
	bool cancelOperation
)

Parameters

cancelOperation
Type: System::Boolean

True if the operation was canceled, otherwise false.

Return Value

Type: System::Int32

The result.

Return to top
Show: