次の方法で共有


ITextUndoHistoryRegistry.TryGetHistory Method

Gets a history associated with the text buffer, but does not create a new one.

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

Syntax

'宣言
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

Parameters

Return Value

Type: System.Boolean
true if there is an undo history associated with the specified text buffer, otherwise false.

.NET Framework Security

See Also

Reference

ITextUndoHistoryRegistry Interface

Microsoft.VisualStudio.Text.Operations Namespace