应用到: CRM 2015 on-prem, CRM Online
指定 Boolean 数据类型的值,该值可作为参数传递。
语法
<BoolParameter
 Name="string"
 Value=["0" | "1" | "true" | "false"]
</ BoolParameter >
属性和元素
The following table lists the attributes, child elements, and parent elements.
属性
| Attribute | Description | Type | Usage | 
|---|---|---|---|
| Value | 指定要作为参数传递的值。 | Boolean | Required | 
| Name | 表示在使用 Url 元素时为此值传递的查询字符串参数的名称。 The name of the Boolean value to pass when BoolParameter is used as a child of <Url> (RibbonDiffXml). | String | Required 备注 This parameter is only available when BooleanParameter is a child of <Url> (RibbonDiffXml). | 
子元素
此元素没有子元素。
父元素
| Element | Description | 
|---|---|
| 指定从特定 JavaScript 库调用函数的操作。 | |
| 指定用于包含对 JavaScript 库中的函数的引用的 EnableRule 定义的规则。 | |
| 一个操作,用于打开位于指定地址的网页。 | 
示例
This <Url> (RibbonDiffXml) action passes the Boolean value of ”false” with the name ”test” to a Web resource.
<Actions> <Url Address="$webresource:New_ShowParams.htm">  <BoolParameter Name="test"                 Value="false"/> </Url></Actions>
元素信息
| XPath |  | 
| Schema Name | BoolParameterType or BoolNamedParameterType | 
| Validation File | RibbonTypes.xsd | 
| Can be Empty | Yes | 
另请参阅
其他资源
自定义命令和功能区
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.