Udostępnij za pośrednictwem


IVsReferenceManagerUserReloadRequired.ApplyReloadRequiredReferenceChanges Method

Definition

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.

public:
 int ApplyReloadRequiredReferenceChanges(bool cancelOperation);
public:
 int ApplyReloadRequiredReferenceChanges(bool cancelOperation);
int ApplyReloadRequiredReferenceChanges(bool cancelOperation);
public int ApplyReloadRequiredReferenceChanges (bool cancelOperation);
abstract member ApplyReloadRequiredReferenceChanges : bool -> int
Public Function ApplyReloadRequiredReferenceChanges (cancelOperation As Boolean) As Integer

Parameters

cancelOperation
Boolean

True if the operation was canceled, otherwise false.

Returns

The result.

Applies to