Share via


DeclarativeContextDefinition Element (SolutionManifestDeclarativeExtensions Schema)

Applies to: SharePoint Server 2010

The <DeclarativeContextDefinition> element derives from the <ContextDefinition> element. In intermediate declarative Microsoft Outlook 2010 solutions, this element is used to define a context for an external content type of Outlook Item Type, which this context definition group defines.

Namespace: https://schemas.microsoft.com/office/2009/05/BusinessApplications/Manifest/DeclarativeExtensions

Schema: SolutionManifestDeclarativeExtensions

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

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute

Description

ContentType

The type name of this context in Outlook 2010. Can be different from the name of the external content type in the model. The value that you specify here affects the name of the Outlook item type as it appears in the Outlook object model. In Outlook, the name is appended to the Outlook item type; the full name of an external content type is Outlook.<OutlookItemType>.<ContentType>. For example, a Customer external type could be Outlook.Contact.Customer if it is visualized as an Outlook Contact. If the external content type is visualized in a taskpane in Outlook, the full name is EntityView.<ContentType>. For example, EntityView.Customer indicates how a customer would be visualized in the taskpane. If you use the object model to work on Outlook items, this is the naming scheme that you use to identify your Outlook items.

Required.

Attribute type: String

Description

A description for the context definition.

Optional.

Attribute type: String

Child Elements

Element

Description

Entities

The <Entities> element defines the external content type that this context definition is associated with. Note that in the current release of the product, a context definition can be associated with only one external type, even though the schema supports associating a context definition with more than one <Entity> element.

OfficeItemCustomizations

The <OfficeItemCustomizations> element lists the Outlook user interface customizations that are defined for this context definition.

Layouts Element in DeclarativeContextDefinition (SolutionManifestDeclarativeExtensions Schema)

The <Layouts> element lists the layouts that are defined for this context definition.

Actions Element in DeclarativeContextDefinition (SolutionManifestDeclarativeExtensions Schema)

The <Actions> element displays the actions that are defined for this context.

ContextEventHandlers Element in DeclarativeContextDefinition (SolutionManifestDeclarativeExtensions Schema)

The <ContextEventHandlers> element lists the actions to be executed when the context becomes active or when the context is deactivated.

Parent Elements

None.