<CommandDefinition> (RibbonDiffXml)

应用到: CRM 2015 on-prem, CRM Online

指定一组规则,这些规则用于控制功能区元素的显示方式以及功能区元素和控件可引用的要执行的操作。

语法

<CommandDefinition
Id="String">
 <EnableRules />
 <DisplayRules />
 <Actions />
</CommandDefinition>

属性和元素

The following table lists the attributes, child elements, and parent elements.

属性

Attribute Description Type Usage

Id

指定功能区元素的定义的唯一标识符。强烈推荐的命名约定是使用句点来分隔名称各部分的,如[solution identifier].[entity].[ribbon].[function].[element name]。例如:MyISV.account.form.SendToOtherSystem.Button。

String

Required

子元素

Element Description

<EnableRules> (RibbonDiffXml)

包含一个启用规则的集合。

<DisplayRules> (RibbonDiffXml)

包含一个显示规则集合。

<Actions> (RibbonDiffXml)

指定命令将执行的操作。

父元素

Element Description

<CommandDefinitions> (RibbonDiffXml)

包含一个可由功能区控件引用的命令的集合。

备注

This element must contain all child elements even when no enable rules, display rules, or actions are defined.

元素信息

XPath

//RibbonDiffXml/CommandDefinitions/CommandDefinition

Schema Name

CommandDefinitionType

Validation File

RibbonTypes.xsd

Can be Empty

No

另请参阅

概念

定义功能区命令

其他资源

Ribbon XML reference
自定义命令和功能区

Microsoft Dynamics CRM 2015 and Microsoft Dynamics CRM Online
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.