<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.