DeclarativeContextDefinition 元素(SolutionManifestDeclarativeExtensions 架构)

上次修改时间: 2015年3月9日

适用范围: SharePoint Server 2010

<DeclarativeContextDefinition> 元素派生自 <ContextDefinition> 元素。在中间声明性 Microsoft Outlook 2010 解决方案中,此元素用于定义 Outlook Item Type 的外部内容类型的上下文,该外部内容类型由此上下文定义组定义。

命名空间:https://schemas.microsoft.com/office/2009/05/BusinessApplications/Manifest/DeclarativeExtensions

架构:SolutionManifestDeclarativeExtensions

<ContextDefinition xsl:type="DeclarativeContextDefinition" xmlns:xsl=http://www.w3.org/2001/XMLSchema-instance"  ContentType = "String" Description = "String"> </ContextDefinition>

属性和元素

以下各部分介绍了属性、子元素和父元素。

属性

属性

说明

ContentType

此上下文在 Outlook 2010 中的类型名称。可以与模型中外部内容类型的名称不同。您在此处指定的值会在 Outlook 项目类型的名称在 Outlook 对象模型中显示时对该名称产生影响。在 Outlook 中,将为 Outlook 项目类型追加该名称;外部内容类型的全名是"Outlook.<OutlookItemType>.<ContentType>"。例如,如果将 Customer 外部类型可视化为 Outlook Contact,则该类型可以为 Outlook.Contact.Customer。如果在 Outlook 的任务窗格中可视化外部内容类型,则其全名为 EntityView.<ContentType>。例如,EntityView.Customer 指示如何在任务窗格中对客户进行可视化。如果使用对象模型来处理 Outlook 项,则此方法将成为用来标识 Outlook 项的命名方案。

必需。

属性类型:String

说明

上下文定义的说明。

可选。

属性类型:String

子元素

元素

说明

Entities

<Entities> 元素定义与此上下文定义关联的外部内容类型。请注意,在当前版本的产品中,上下文定义可只与一个外部类型关联,即使架构支持将一个上下文定义与多个 <Entity> 元素关联。

OfficeItemCustomizations

<OfficeItemCustomizations> 元素列出了为此上下文定义定义的 Outlook 用户界面自定义项。

DeclarativeContextDefinition 中的 Layouts 元素(SolutionManifestDeclarativeExtensions 架构)

<Layouts> 元素列出了为此上下文定义定义的布局。

DeclarativeContextDefinition 中的 Actions 元素(SolutionManifestDeclarativeExtensions 架构)

<Actions> 元素显示为此上下文定义的操作。

DeclarativeContextDefinition 中的 ContextEventHandlers 元素(SolutionManifestDeclarativeExtensions 架构)

<ContextEventHandlers> 元素列出了在激活或停用上下文时要执行的操作。

父元素

无。