DeclarativeContextDefinition 元素

(SolutionManifestDeclarativeExtensions 架构)

适用于:SharePoint 2016 |SharePoint Foundation 2013 |SharePoint Online |SharePoint Server 2013

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

命名空间http://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>

元素和属性

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

Attributes

属性 说明
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 元素列出了上下文变为活动或停用上下文时要执行的操作。

父元素

无。