outlook - 不能与 Outlook 插件清单中的其他扩展点一起使用?
问题描述
<VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
<Hosts>
<Host xsi:type="MailHost">
<DesktopFormFactor>
<FunctionFile resid="functionFile" />
<ExtensionPoint xsi:type="MessageComposeCommandSurface">
<OfficeTab id="TabDefault2">
<Group id="msgWriteGroup">
<Label resid="groupLabel" />
<Control xsi:type="Button" id="msgWriteOpenPaneButton">
<Label resid="paneReadButtonLabel" />
<Supertip>
<Title resid="paneReadSuperTipTitle" />
<Description resid="paneReadSuperTipDescription" />
</Supertip>
<Icon>
<bt:Image size="16" resid="icon16" />
<bt:Image size="32" resid="icon32" />
<bt:Image size="80" resid="icon80" />
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="messageReadTaskPaneUrl" />
</Action>
</Control>
</Group>
</OfficeTab>
</ExtensionPoint>
</DesktopFormFactor>
</Host>
</Hosts>
<Resources>
<bt:Images>
<bt:Image id="icon16" DefaultValue="https://localhost:4200/assets/images/icon-32.png"/>
<bt:Image id="icon32" DefaultValue="https://localhost:4200/assets/images/icon-32.png"/>
<bt:Image id="icon80" DefaultValue="https://localhost:4200/assets/images/icon-32.png"/>
</bt:Images>
<bt:Urls>
<bt:Url id="functionFile" DefaultValue="https://localhost:44383/"/>
<bt:Url id="messageReadTaskPaneUrl" DefaultValue="https://localhost:44383"/>
</bt:Urls>
<bt:ShortStrings>
<bt:String id="customTabLabel" DefaultValue="My Add-in Tab"/>
</bt:ShortStrings>
</Resources>
<VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
<Hosts>
<Host xsi:type="MailHost">
<DesktopFormFactor>
<FunctionFile resid="residUILessFunctionFileUrl" />
<ExtensionPoint xsi:type="Events">
<Event Type="ItemSend" FunctionExecution="synchronous" FunctionName="validateBody" />
</ExtensionPoint>
</DesktopFormFactor>
</Host>
</Hosts>
<Resources>
<bt:Urls>
<bt:Url id="residUILessFunctionFileUrl" DefaultValue="https://localhost:4200/on-send" ></bt:Url>
</bt:Urls>
</Resources>
</VersionOverrides>
你好。上面的代码是我的 Outlook 插件清单。
我在邮件撰写窗口顶部的功能区按钮上看到了加载项按钮,我也想使用 On-Send 事件。
所以我合并了清单, onsend 事件有效,但按钮没有出现在撰写窗口中。
我不能和一起使用吗?
解决方案
功能区按钮和 OnSend 事件都需要是 Version Overrides 1.1。1.1 部分将在适用时完全覆盖 1.0 部分。
您可能希望将功能区按钮放在 1.1 和 1.0 中,并将 OnSend 事件仅放在 1.1 部分中。
推荐阅读
- git - 我们可以在 Azure DevOps 中锁定文件吗?
- javafx - 单击而不是双击开始编辑 TableCell
- javascript - Greensock 动画是如何在幕后工作的?
- reactjs - 如何在为传单设置弹出窗口时使用反应组件
- java - 如何将数组的元素从子类传递到主类
- javascript - Vue:使用 scoped 时 CSS 不适用于 D3 的 svg
- javascript - 单击时删除按钮
- sulu - 如何传递数据库数据或 php 常量数据等数据以在 main.js 中的表单中显示
- rust - 如何运行可以采用未指定数量的 env 参数的命令?
- python - 在 PyCharm 中,下载 Python 3 后,仍然无法使用