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
- context
Type: System.Object
This object should always be an ITextBuffer.
- history
Type: Microsoft.VisualStudio.Text.Operations.ITextUndoHistory%
[out] An ITextUndoHistory associated with the text buffer.
Return Value
Type: System.Boolean
true if there is an undo history associated with the specified text buffer, otherwise false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.