ExpressionNode.Type Property

 

Applies To: SQL Server 2016 Preview

Gets the type of expression node.

Namespace:   Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)

Syntax

public ExpressionNodeType Type { get; }
public:
property ExpressionNodeType Type {
    ExpressionNodeType get();
}
member Type : ExpressionNodeType with get
Public ReadOnly Property Type As ExpressionNodeType

Property Value

Type: Microsoft.SqlServer.Management.Dmf.ExpressionNodeType

An ExpressionNodeType value that specifies the part of an expression that is represented by the expression node.

Remarks

These values determine the type of expression node and which DMF type the expression node is represent by in more detail. Each type has a corresponding DMF object type that has specific, relevant methods and properties.

Examples

Legacy Code Example

C#

string expressionStr = "ExecuteSql('Numeric','SELECT 1')";
ExpressionNode node = ExpressionNode.Parse(expressionStr);
TestAssertion.IsTrue (node.Type == ExpressionNodeType.Function, "Should be function");

See Also

ExpressionNode Class
Microsoft.SqlServer.Management.Dmf Namespace

Return to top