編輯

共用方式為


ContextEventHandlers Element in DeclarativeContextDefinition

(SolutionManifestDeclarativeExtensions Schema)

Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013

The ContextEventHandlers element is used to specify the actions to be executed when a context becomes active, and the actions to be taken when a context is deactivated.

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

Schema: SolutionManifestDeclarativeExtensions

<ContextEventHandlers > </ContextEventHandlers>

Elements and attributes

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

Attributes

None.

Child elements

Element Description
ContextActivated Element in ContextEventHandlers (SolutionManifestDeclarativeExtensions Schema) The action to be executed when a context becomes active.
ContextDeactivated Element in ContextEventHandlers (SolutionManifestDeclarativeExtensions Schema) The action to be executed when a context is deactivated.

Parent elements

Element Description
DeclarativeContextDefinition Element (SolutionManifestDeclarativeExtensions Schema) The context that these actions apply to.