A Sandcastle Documented Class Library

# ExpressionDescriptor DefineNumericParameter Method (String, String, String, ParameterToken, Number, Number)

Defines a parameter placeholder that expects Number values for resolution.

Namespace: Dundas.BI.Data.Metadata
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    public ParameterPlaceholder DefineNumericParameter(
    	string placeholderCaption,
    	string name,
    	string description,
    	ParameterToken defaultValue,
    	Number minimumValue,
    	Number maximumValue
    )

    Public Function DefineNumericParameter (
    	placeholderCaption As String,
    	name As String,
    	description As String,
    	defaultValue As ParameterToken,
    	minimumValue As Number,
    	maximumValue As Number
    ) As ParameterPlaceholder

    public:
    ParameterPlaceholder^ DefineNumericParameter(
    	String^ placeholderCaption,
    	String^ name,
    	String^ description,
    	ParameterToken^ defaultValue,
    	Number minimumValue,
    	Number maximumValue
    )

    member DefineNumericParameter :
            placeholderCaption : string *
            name : string *
            description : string *
            defaultValue : ParameterToken *
            minimumValue : Number *
            maximumValue : Number -> ParameterPlaceholder

#### Parameters

placeholderCaption
  Type: System
  String
  The parameter placeholder used in the expression statement.
name
  Type: System
  String
  The name.
description
  Type: System
  String
  The parameter description.
defaultValue
  Type: Dundas.BI.Data.Parameters.Tokens
  ParameterToken
  The default value.
minimumValue
  Type: Dundas.BI
  Number
  The minimum value.
maximumValue
  Type: Dundas.BI
  Number
  The maximum value.

#### Return Value

Type: ParameterPlaceholder
The expression parameter.
Exceptions

Exception | Condition
--- | ---
ArgumentException | placeholderCaption is or Empty or already in use in the expression statement or minimumValue or maximumValue is invalid or defaultValue is invalid for the specified parameter category.
InvalidOperationException | Parameters can be defined only for entity specific expressions.

See Also

#### Reference

ExpressionDescriptor Class
DefineNumericParameter Overload
Dundas.BI.Data.Metadata Namespace