A Sandcastle Documented Class Library

# SelectTransform AddSelectExpression Method

Adds a ProviderElementExpression to the current instance used to generate a new output element.

Namespace: Dundas.BI.Data.Transforms
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 ProviderElementExpression AddSelectExpression(
    	string uniqueName,
    	string description,
    	bool isAggregated,
    	string statement,
    	DataType dataType
    )

    Public Function AddSelectExpression (
    	uniqueName As String,
    	description As String,
    	isAggregated As Boolean,
    	statement As String,
    	dataType As DataType
    ) As ProviderElementExpression

    public:
    ProviderElementExpression^ AddSelectExpression(
    	String^ uniqueName,
    	String^ description,
    	bool isAggregated,
    	String^ statement,
    	DataType dataType
    )

    member AddSelectExpression :
            uniqueName : string *
            description : string *
            isAggregated : bool *
            statement : string *
            dataType : DataType -> ProviderElementExpression

#### Parameters

uniqueName
  Type: System
  String
  The unique name of the generated element.
description
  Type: System
  String
  The description for the generated element.
isAggregated
  Type: System
  Boolean
  The flag must be set to
  if the expression has aggregators defined within. Its values is used to determine the correct placement of the expression in automatic SQL statement generation.
statement
  Type: System
  String
  The expression statement.
dataType
  Type: Dundas.BI.Data.Metadata
  DataType
  The data type of the expression result.

#### Return Value

Type: ProviderElementExpression
The select expression.
Exceptions

Exception | Condition
--- | ---
InvalidOperationException | The current instance does not support ProviderElementExpressions.
ArgumentException | uniqueName is or Empty or there is another input element with the same name.

See Also

#### Reference

SelectTransform Class
Dundas.BI.Data.Transforms Namespace