在引发事件之前发生。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
语法
声明
Sub OnBeforeAction
void OnBeforeAction()
void OnBeforeAction()
abstract OnBeforeAction : unit -> unit
function OnBeforeAction()
备注
COM 签名
从 textmgr.idl:
HRESULT IVsCompoundActionEvents::OnBeforeAction();
,在事件发生之前,OnBeforeAction 会激发。 这允许客户端计算机的事务准备由信息缓存或在事务中仅存在于创建的对象。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。