ITextUndoHistory.UndoTransactionCompleted 事件
當 ITextUndoTransaction 已完成並加入至 UndoStack 時通知消費者。
命名空間: Microsoft.VisualStudio.Text.Operations
組件: Microsoft.VisualStudio.Text.Logic (在 Microsoft.VisualStudio.Text.Logic.dll 中)
語法
'宣告
Event UndoTransactionCompleted As EventHandler(Of TextUndoTransactionCompletedEventArgs)
event EventHandler<TextUndoTransactionCompletedEventArgs> UndoTransactionCompleted
event EventHandler<TextUndoTransactionCompletedEventArgs^>^ UndoTransactionCompleted {
void add (EventHandler<TextUndoTransactionCompletedEventArgs^>^ value);
void remove (EventHandler<TextUndoTransactionCompletedEventArgs^>^ value);
}
abstract UndoTransactionCompleted : IEvent<EventHandler<TextUndoTransactionCompletedEventArgs>,
TextUndoTransactionCompletedEventArgs>
JScript 不支援事件。
備註
寄件者是ITextUndoHistory所引發,而事件引數的執行個體TextUndoTransactionCompletedEventArgs類別。 這個事件會針對最上層ITextUndoTransaction只物件。 完成巢狀交易不會產生這個事件。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。