配置加载项以根据支持的事件激活。 LaunchEvents 元素的子元素。 有关详细信息,请参阅 使用事件激活加载项。
加载项类型: 文档、邮件、演示文稿、工作簿
仅在以下 VersionOverrides 架构中有效:
- 邮件 1.1
- 任务窗格 1.0
有关详细信息,请参阅仅加载 项清单中的版本替代。
语法
<ExtensionPoint xsi:type="LaunchEvent">
<LaunchEvents>
<LaunchEvent Type="OnNewMessageCompose" FunctionName="onMessageComposeHandler"/>
<LaunchEvent Type="OnNewAppointmentOrganizer" FunctionName="onAppointmentComposeHandler"/>
<LaunchEvent Type="OnMessageDecrypt" FunctionName="onMessageDecryptHandler" HeaderName="contoso-encrypted"/>
<LaunchEvent Type="OnMessageReadWithCustomHeader" FunctionName="onMessageReadWithCustomHeaderHandler" HeaderName="contoso-spam-simulation"/>
<LaunchEvent Type="OnMessageReadWithCustomAttachment" FunctionName="onMessageReadWithCustomAttachmentHandler">
<MessageAttachments>
<MessageAttachment AttachmentExtension="xml"/>
<MessageAttachment AttachmentExtension="json"/>
</MessageAttachments>
</LaunchEvent>
</LaunchEvents>
<!-- 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="WebViewRuntime.Url"/>
</ExtensionPoint>
包含于
属性
| 属性 | 必需 | 说明 |
|---|---|---|
| Type | 是 | 指定支持的事件类型。 有关支持的类型集,请参阅“ 使用事件激活加载项”中支持的事件表的“事件规范名称和仅加载项清单名称”列。 |
| FunctionName | 是 | 指定要处理属性中 Type 指定的事件的 JavaScript 函数的名称。 |
| SendMode | 否 | 由 和 OnMessageSendOnAppointmentSend 事件使用。 指定在加载项停止发送或加载项不可用时可供用户使用的选项。 如果不包括 SendMode 属性,则默认设置该 SoftBlock 选项。 有关可用发送模式选项的列表,请参阅 可用的发送模式选项。 |
| HeaderName | 否 | 指定用于标识在邮件上发生 OR OnMessageDecrypt (OnMessageReadWithCustomHeader 预览) 事件的 Internet 标头名称。 该 Type 属性必须设置为 OnMessageDecrypt 或 OnMessageReadWithCustomHeader。 |
子元素
| 元素 | 必需 | 说明 |
|---|---|---|
| 预览) (MessageAttachments 元素 | 否 | 配置要在事件上激活的基于事件的 OnMessageReadWithCustomAttachment 加载项。 |