OleUndoEngine.Microsoft.VisualStudio.TextManager.Interop.IVsLinkedUndoClient.OnInterveningUnitBlockingLinkedUndo Method
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Indicates that the undo manager is blocking another undo manager from executing a linked action.
Namespace: Microsoft.VisualStudio.Shell.Design
Assembly: Microsoft.VisualStudio.Shell.Design (in microsoft.visualstudio.shell.design.dll)
Assembly: Microsoft.VisualStudio.Shell.Design (in microsoft.visualstudio.shell.design.dll)
private: virtual int Microsoft.VisualStudio.TextManager.Interop.IVsLinkedUndoClient.OnInterveningUnitBlockingLinkedUndo () sealed = IVsLinkedUndoClient::OnInterveningUnitBlockingLinkedUndo
J# supports the use of explicit interface implementations, but not the declaration of new ones.
JScript supports the use of explicit interface implementations, but not the declarations of new ones.
Return Value
If the method succeeds, it returns S_OK. If it fails, it returns an error code.When this method is called, it means that the undo manager has a non-linked action on top of its undo or redo stack which is blocking another undo manager from executing its linked action.
If possible, you should do the following in response to this call:
1) Activate a window with a view on the corresponding data using the undo manager.
2) Put up a message box with the provided localized error string or put up your own custom UI.
If you can do the above two so that the user knows what happened, return S_OK. Otherwise, you must return E_FAIL, which will cause the undo to fail and break all transaction links to that document.
Show: