ReportPhishingCustomization 元素

在 Outlook 中配置垃圾邮件报告加载项的功能区按钮和预处理对话框。

若要详细了解如何在加载项中实现垃圾邮件报告功能,请参阅 实现集成垃圾邮件报告加载项。

加载项类型:邮件

仅在以下 VersionOverrides 架构中有效:

  • 邮件 1.1

有关详细信息,请参阅仅加载 项清单中的版本替代。

与以下要求集关联:

包含于

Attributes

无。

子元素

元素 必需 说明
Control 是 配置加载项按钮并将其添加到功能区。 xsi:type 属性必须设置为 Button ,其 <Action> 子元素的 xsi:type 属性必须设置为 ExecuteFunction。
PreProcessingDialog 是 配置从功能区中选择加载项按钮后显示的预处理对话框。 此对话框允许用户提供有关他们正在报告的消息的其他信息。
SourceLocation 元素 (版本覆盖) 是 指定源 JavaScript 文件的位置。

重要提示: residSourceLocation> 元素的<值必须与resid表示浏览器运行时的 Runtime> 元素的<值匹配。 例如,如果运行时定义为 <Runtime resid="WebViewRuntime.Url">,请指定 <SourceLocation resid="WebViewRuntime.Url"/>。

示例

<ExtensionPoint xsi:type="ReportPhishingCommandSurface">
  <ReportPhishingCustomization>
    <!-- Configures the ribbon button. -->
    <Control xsi:type="Button" id="ReportingButton">
      <Label resid="ReportingButton.Label"/>
      <Supertip>
        <Title resid="ReportingButton.Label"/>
        <Description resid="ReportingButton.Description"/>
      </Supertip>
      <Icon>
        <bt:Image size="16" resid="Icon.16x16"/>
        <bt:Image size="32" resid="Icon.32x32"/>
        <bt:Image size="64" resid="Icon.64x64"/>
        <bt:Image size="80" resid="Icon.80x80"/>
      </Icon>
      <Action xsi:type="ExecuteFunction">
        <FunctionName>onMessageReport</FunctionName>
      </Action>
    </Control>
    <!-- Configures the preprocessing dialog. -->
    <PreProcessingDialog>
      <Title resid="PreProcessingDialog.Label"/>
      <Description resid="PreProcessingDialog.Description"/>
      <ReportingOptions>
        <Title resid="OptionsTitle.Label"/>
        <Option resid="Option1.Label"/>
        <Option resid="Option2.Label"/>
        <Option resid="Option3.Label"/>
        <Option resid="Option4.Label"/>
      </ReportingOptions>
      <FreeTextLabel resid="FreeText.Label"/>
      <MoreInfo>
        <MoreInfoText resid="MoreInfo.Label"/>
        <MoreInfoUrl resid="MoreInfo.Url"/>
      </MoreInfo>
    </PreProcessingDialog>
    <!-- Identifies the runtime to be used. The resid value must match the resid value of the Runtime element that represents the browser runtime. -->
    <SourceLocation resid="Commands.Url"/>
  </ReportPhishingCustomization>
</ExtensionPoint>