Condividi tramite


Metodo IVsTextStream.GetUndoManager

restituisce l'amministratore di annullamento per questo buffer.

Spazio dei nomi:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Sintassi

'Dichiarazione
Function GetUndoManager ( _
    <OutAttribute> ByRef ppUndoManager As IOleUndoManager _
) As Integer
int GetUndoManager(
    out IOleUndoManager ppUndoManager
)
int GetUndoManager(
    [OutAttribute] IOleUndoManager^% ppUndoManager
)
abstract GetUndoManager : 
        ppUndoManager:IOleUndoManager byref -> int
function GetUndoManager(
    ppUndoManager : IOleUndoManager
) : int

Parametri

  • ppUndoManager
    Tipo: IOleUndoManager%

    [out] Puntatore a IOleUndoManager interfaccia.

Valore restituito

Tipo: Int32
Se il metodo ha esito positivo, restituisce S_OK.Se non riesce, restituisce un codice di errore.

Note

Firma COM

da textmgr.idl:

HRESULT IVsTextStream::GetUndoManager(
   [out] IOleUndoManager **ppUndoManager
);

Questo metodo può essere dispendioso, a seconda dell'implementazione sottostante del buffer. Ovvero essere molto difficile calcolare la dimensione del buffer se è a un'implementazione orientata a virtuale del buffer, ad esempio in Visual Basic.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

IVsTextStream Interfaccia

Spazio dei nomi Microsoft.VisualStudio.TextManager.Interop