Condividi tramite


IVsLinkedUndoClient.OnInterveningUnitBlockingLinkedUndo Method

Indicates that the undo manager is blocking another undo manager from executing a linked action.

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

Syntax

'Dichiarazione
Function OnInterveningUnitBlockingLinkedUndo As Integer
'Utilizzo
Dim instance As IVsLinkedUndoClient
Dim returnValue As Integer

returnValue = instance.OnInterveningUnitBlockingLinkedUndo()
int OnInterveningUnitBlockingLinkedUndo()
int OnInterveningUnitBlockingLinkedUndo()
abstract OnInterveningUnitBlockingLinkedUndo : unit -> int 
function OnInterveningUnitBlockingLinkedUndo() : int

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsLinkedUndoClient::OnInterveningUnitBlockingLinkedUndo();

This method is called when an undo manager has a non-linked action on top of its undo or redo stack that is blocking another undo manager from executing its linked action. If possible, do the following in response to this call:

Activate a window with a view on the corresponding data using the undo manager.

Put up a message box with the provided localized error string or put up your own custom UI.

If you complete these actions, return S_OK. Otherwise, return E_FAIL, which causes the undo to fail and break all transaction links to that document.

.NET Framework Security

See Also

Reference

IVsLinkedUndoClient Interface

IVsLinkedUndoClient Members

Microsoft.VisualStudio.TextManager.Interop Namespace