DeclarativeContextDefinition 中的 ContextEventHandlers 元素(SolutionManifestDeclarativeExtensions 架构)

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

适用范围: SharePoint Server 2010

使用 <ContextEventHandlers> 元素可指定在激活上下文时要执行的操作,以及在停用上下文中时要采用的操作。

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

架构:SolutionManifestDeclarativeExtensions

<ContextEventHandlers > </ContextEventHandlers>

属性和元素

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

属性

无。

子元素

元素

说明

ContextEventHandlers 中的 ContextActivated 元素(SolutionManifestDeclarativeExtensions 架构)

在激活上下文时要执行的操作。

ContextEventHandlers 中的 ContextDeactivated 元素(SolutionManifestDeclarativeExtensions 架构)

在停用上下文时要执行的操作。

父元素

元素

说明

DeclarativeContextDefinition 元素(SolutionManifestDeclarativeExtensions 架构)

这些操作应用于的上下文。