首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 ><ExtensionPoint xsi: type = "Events">不能与outlook插件清单中的其他扩展点一起使用吗?

<ExtensionPoint xsi: type = "Events">不能与outlook插件清单中的其他扩展点一起使用吗?
EN

Stack Overflow用户
提问于 2021-04-30 14:49:42
回答 1查看 53关注 0票数 0
代码语言:javascript
复制
<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事件起作用了,但是按钮没有出现在compose窗口中。

我不能一起使用and吗?

EN

回答 1

Stack Overflow用户

发布于 2021-05-01 03:24:10

功能区按钮和OnSend事件都需要是版本覆盖1.1。1.1部分将在适用时完全覆盖1.0部分。

您可能希望将Ribbon Button放在1.1和1.0中,并将OnSend事件放在1.1部分中。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67329400

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档