How to access Application property in VSTO Outlook add-in outside of ThisAddIn class?

后端 未结 2 840
半阙折子戏
半阙折子戏 2021-01-04 01:07

ThisAddIn class created with new Outlook VSTO C# project has a Application property that you can use to among other things get access to Outlook folders and ite

2条回答
  •  悲哀的现实
    2021-01-04 01:29

    Since you can have single Instance of ThisAddIn you can have a static variable to access Application form outside... FYI when you add Outlook-AddIn VSTO project,instance of ThisAddIn will be available as static member in static class Globals

提交回复
热议问题