<CommandClientTypeRule> (RibbonDiffXml)

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

指定用于检测使用中的演示类型的规则。

语法

<CommandClientTypeRule
 Default=["0" | "1" | "true" | "false"]
 InvertResult=["0" | "1" | "true" | "false"]
 Type=["Modern" | "Refresh" | "Legacy"] 
/>

属性和元素

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

属性

Attribute Description Type Usage

Default

如果无法确定实际值,则设置规则的默认返回值。

Boolean

Optional

InvertResult

对此规则的返回值求反。

Boolean

Optional

Type

Specifies the type of presentation.

Valid values:

  • Modern

  • Refresh

  • Legacy

See Remarks.

Enumeration

Required

子元素

此元素不具有属性。

父元素

Element Description

<DisplayRule> (RibbonDiffXml)

指定用于显示功能区元素的规则定义或指定对命令定义中的 DisplayRule 的引用。

<EnableRule> (RibbonDiffXml)

指定用于启用或禁用功能区元素的规则定义或指定对命令定义中的 EnableRule 的引用。

<Or> (RibbonDiffXml)

指定一组必须一起评估的规则。

备注

The Type values correspond to the following:

Value Presentation

Modern

The command bar is presented using 适用于平板电脑的 Microsoft Dynamics CRM.

Refresh

The command bar is presented using the updated user interface.

Legacy

The ribbon is presented in forms for entities that were not updated or in a list view in Microsoft Dynamics CRM for Outlook.

元素信息

XPath

//RibbonDiffXml/RuleDefinitions/DisplayRules/DisplayRule/CommandClientTypeRule |
//RibbonDiffXml/RuleDefinitions/EnableRules/EnableRule/CommandClientTypeRule |
//RibbonDiffXml/RuleDefinitions/DisplayRules/DisplayRule/OrRule/Or/CommandClientTypeRule |
//RibbonDiffXml/RuleDefinitions/EnableRules/EnableRule/OrRule/Or/CommandClientTypeRule

Schema Name

CommandClientTypeRule

Validation File

RibbonTypes.xsd

Can be Empty

Yes

另请参阅

其他资源

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

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