在预览模式下启用 Outlook 插件
我创建了一个扩展程序,可以提取电子邮件的一些参数并将其转发到我们的平台。它工作正常,但现在我想确保我的扩展即使在预览模式下也能工作。我们不必打开电子邮件即可使用扩展程序。 我找不到任何在预览模式下启用插件的配置。
I have created an extension that extracts some parameters for the email and forwards it to our platform. It's working fine but now I want to make sure that my extension works even in preview mode. We don't have to open an email in order to use an extension.
I couldn't find any configuration to enable the plugin in preview mode.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来您需要处理
Explorer
类的SelectionChange
事件。当用户以编程方式或通过与用户界面交互选择不同或附加的 Microsoft Outlook 项目时,会触发该事件。当用户(以编程方式或通过用户界面)单击或切换到包含项目的其他文件夹时,也会发生此事件,因为 Outlook 会自动选择该文件夹中的第一个项目。但是,如果该文件夹是文件系统文件夹或者显示具有当前 Web 视图的任何文件夹,则不会发生此事件。Explorer.Selection 属性返回 < code>Selection 对象,包含在资源管理器窗口中选择的一个或多个项目。以下是如何处理
Selection
对象的示例:It seems you need to handle the
SelectionChange
event of theExplorer
class. It is fired when the user selects a different or additional Microsoft Outlook item programmatically or by interacting with the user interface. This event also occurs when the user (either programmatically or via the user interface) clicks or switches to a different folder that contains items, because Outlook automatically selects the first item in that folder. However, this event does not occur if the folder is a file-system folder or if any folder with a current Web view is displayed.The Explorer.Selection property returns a
Selection
object that contains the item or items that are selected in the explorer window. Here is the sample how you can deal with theSelection
object: