<CommandDefinition> (RibbonDiffXml)

適用対象: CRM 2016 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 2016 and Microsoft Dynamics CRM Online
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.