更新:2007 年 11 月
此 API 支持 .NET Framework 基础结构,不适合在代码中直接使用。
仅由 Microsoft 内部使用。
命名空间: EnvDTE80
程序集: EnvDTE80(在 EnvDTE80.dll 中)
语法
声明
Event BeforeKeyPress As _dispTextDocumentKeyPressEvents_BeforeKeyPressEventHandler
用法
Dim instance As _dispTextDocumentKeyPressEvents_Event
Dim handler As _dispTextDocumentKeyPressEvents_BeforeKeyPressEventHandler
AddHandler instance.BeforeKeyPress, handler
event _dispTextDocumentKeyPressEvents_BeforeKeyPressEventHandler BeforeKeyPress
event _dispTextDocumentKeyPressEvents_BeforeKeyPressEventHandler^ BeforeKeyPress {
void add (_dispTextDocumentKeyPressEvents_BeforeKeyPressEventHandler^ value);
void remove (_dispTextDocumentKeyPressEvents_BeforeKeyPressEventHandler^ value);
}
JScript 不支持事件。
权限
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
另请参见
参考
_dispTextDocumentKeyPressEvents_Event 接口