ExpressionDescriptorDefineDateTimeParameter Method (String, String, String, ParameterToken, ValidValuesSource) |
Defines a parameter placeholder that expects
DateTime for resolution.
Namespace:
Dundas.BI.Data.Metadata
Assembly:
Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.3.0.1000)
Syntax public ParameterPlaceholder DefineDateTimeParameter(
string placeholderCaption,
string name,
string description,
ParameterToken defaultValue,
ValidValuesSource validValuesSource
)
Public Function DefineDateTimeParameter (
placeholderCaption As String,
name As String,
description As String,
defaultValue As ParameterToken,
validValuesSource As ValidValuesSource
) As ParameterPlaceholder
public:
ParameterPlaceholder^ DefineDateTimeParameter(
String^ placeholderCaption,
String^ name,
String^ description,
ParameterToken^ defaultValue,
ValidValuesSource validValuesSource
)
member DefineDateTimeParameter :
placeholderCaption : string *
name : string *
description : string *
defaultValue : ParameterToken *
validValuesSource : ValidValuesSource -> ParameterPlaceholder
Parameters
- placeholderCaption
- Type: SystemString
The parameter placeholder used in the expression statement. - name
- Type: SystemString
The name. - description
- Type: SystemString
The parameter description. - defaultValue
- Type: Dundas.BI.Data.Parameters.TokensParameterToken
The default value. - validValuesSource
- Type: Dundas.BI.Data.ParametersValidValuesSource
The valid values source.
Return Value
Type:
ParameterPlaceholderThe expression parameter.
Exceptions Exception | Condition |
---|
ArgumentException | placeholderCaption is or Empty or already in use in the expression statement
or
validValuesSource is invalid
or
defaultValue is invalid for the specified parameter category. |
InvalidOperationException | Parameters can be defined only for entity specific expressions. |
See Also