共用方式為


<StringParameter> (RibbonDiffXml)

適用於: CRM 2016 on-prem, CRM Online

指定字串資料類型、可做為參數傳遞的值。

語法

<StringParameter 
 Name="String" 
 Value="String"
/>

屬性和元素

The following describes the attributes, child elements, and parent elements.

屬性

Attribute Description Type Usage

Name

代表使用 Url 元素時為此值傳遞的查詢字串參數名稱。

String

See Remarks

Value

指定要做為參數傳遞的值。

String

Required

子元素

此元素沒有子元素。

上層元素

Element Description

<CustomRule> (RibbonDiffXml)

指定用於 EnableRule 定義的規則,由 JavaScript 程式庫內函數的參照所組成。

<JavaScriptFunction> (RibbonDiffXml)

指定呼叫 JavaScript 程式庫中之函數的動作。

<Url> (RibbonDiffXml)

動作,開啟位於指定之位址的網頁。

備註

When the StringParameter is a child of the <Url> (RibbonDiffXml) a Name attribute is required. When the StringParameter is a child of the <JavaScriptFunction> (RibbonDiffXml) or <CustomRule> (RibbonDiffXml) elements, the Name attribute is not valid.

元素資訊

XPath

//RibbonDiffXml/RuleDefinitions/EnableRules/EnableRule/CustomRule/StringParameter |
//RibbonDiffXml/RuleDefinitions/EnableRules/EnableRule/OrRule/Or/CustomRule/StringParameter |
//RibbonDiffXml/CommandDefinitions/CommandDefinition/Actions/Url/Stringparameter |
//RibbonDiffXml/CommandDefinitions/CommandDefinition/Actions/JavaScriptFunction/Stringparameter

Schema Name

  • StringParameterType

  • StringNamedParameterType

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.