HostEventMethodType 列舉型別
表示主應用程式中方法的型別,此方法對應於增益集 (Add-In) 中的方法。
命名空間: Microsoft.VisualStudio.Tools.Applications.Runtime
組件: Microsoft.VisualStudio.Tools.Applications.Runtime (在 Microsoft.VisualStudio.Tools.Applications.Runtime.dll 中)
語法
'宣告
Public Enumeration HostEventMethodType
public enum HostEventMethodType
成員
成員名稱 | 說明 | |
---|---|---|
Add | 表示會使用主應用程式方法,將事件處理常式加入到委派 (Delegate)。 | |
Other | 表示未指定主應用程式事件存取子方法型別,但 Runtime 不應嘗試從方法名稱判斷型別。 | |
Raise | 表示主應用程式方法會引發事件。 | |
Remove | 表示會使用主應用程式方法,將事件處理常式從委派移除。 | |
Unspecified | 表示未指定主應用程式事件存取子方法的型別。Runtime 應藉由檢查事件存取子方法名稱的前置詞 (例如 "add_" 或 "remove_") 來判斷型別。 |