ContextDefinitionGroup 中的 ContextDefinition 元素(SolutionManifestDefinitions 架构)

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

适用范围: SharePoint Server 2010

为此上下文定义组定义的 Outlook 项目类型的外部内容类型定义上下文。

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

**架构:**SolutionManifestDefinitions

<ContextDefinition ContentType = "String" Description = "String"> </ContextDefinition>

属性和元素

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

属性

属性

说明

ContentType

必需。

Microsoft Outlook 2010 中此上下文的类型名称。此名称可能与模型中外部内容类型的名称不同。您在此处指定的值会影响 Outlook 项目类型的名称,因为该名称将显示在 Outlook 对象模型中。在 Outlook 中,该名称将追加到 Outlook 项目类型,并且外部内容类型的全名将为"Outlook < OutlookItemType > < ContentType >"。例如,如果 Customer 外部类型将可视化为 Outlook Contact,则该外部类型在 Outlook 中可能为"OutlookContactCustomer"。如果在 Outlook 的任务窗格中可视化该外部内容类型,则该内容类型必须采用以下格式:

length_of_entity_namespace length_of_entity_name length_of_view_name entity_namespace entity_name view_name position_of_entity_namespace

例如,"12 12 24 AWWSExample OrderHeader GetSalesOrderHeaderById 9"。

如果您使用对象模型对 Outlook 项目进行操作,则它将为用于标识 Outlook 项目的命名方案。

属性类型:String

Description

可选。

上下文定义的说明。

属性类型:String

子元素

元素

说明

ContextDefinition 中的 Entities 元素(SolutionManifestDefinitions 架构)

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

ContextDefinition 中的 OfficeItemCustomizations 元素(SolutionManifestDefinitions 架构)

列出此上下文定义中定义的 Outlook UI 自定义项。

父元素

元素

说明

ContextDefinitionGroups 中的 ContextDefinitionGroup 元素(SolutionManifestDefinitions 架构)

包含此上下文定义的上下文定义组。