DotNetParameter.GetEnumValues

Syntax

DotNetParameter.GetEnumValues

Return Value

Object Array

Returns an array of property objects where each property object represents an enumeration value.

Purpose

Returns the enumeration constants for a parameter that is an enumeration.

Remarks

The property objects in the array that this method returns have a name and value that corresponds to the name and value of the enumeration constant.

Pass the return value of this method as the additionalConstants parameter of Expression.ValidateEvaluationType when checking the DotNetParameter.ValueExpr property for errors.

If you are using an ExpressionEdit control to specify the DotNetParameter.ValueExpr property, pass the return value of this method to ExpressionEdit.SetAdditionalEvaluationConstants to direct the ExpressionEdit control to recognize the enumeration constants.

See Also

DotNetParameter.ValidEvaluationTypes

DotNetParameter.ValueExpr

Expression.ValidateEvaluationType

ExpressionEdit.SetAdditionalEvaluationConstants