Freigeben über


ITextUndoHistoryRegistry.TryGetHistory-Methode

Ruft einen Verlauf, der dem Textpuffer zugeordnete ab, erstellt jedoch kein neues.

Namespace:  Microsoft.VisualStudio.Text.Operations
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

Syntax

'Declaration
Function TryGetHistory ( _
    context As Object, _
    <OutAttribute> ByRef history As ITextUndoHistory _
) As Boolean
bool TryGetHistory(
    Object context,
    out ITextUndoHistory history
)
bool TryGetHistory(
    Object^ context, 
    [OutAttribute] ITextUndoHistory^% history
)
abstract TryGetHistory : 
        context:Object * 
        history:ITextUndoHistory byref -> bool
function TryGetHistory(
    context : Object, 
    history : ITextUndoHistory
) : boolean

Parameter

  • context
    Typ: Object

    Dieses Objekt muss ITextBufferenthalten sein.

Rückgabewert

Typ: Boolean
true , wenn es einen Testergebnisse Rückgängig, der mit dem angegebenen Textpuffer zugeordnet ist, andernfalls false.

.NET Framework-Sicherheit

Siehe auch

Referenz

ITextUndoHistoryRegistry Schnittstelle

Microsoft.VisualStudio.Text.Operations-Namespace