Condividi tramite


Proprietà Type

Gets the type of expression node.

Spazio dei nomi  Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)

Sintassi

'Dichiarazione
Public ReadOnly Property Type As ExpressionNodeType
    Get
'Utilizzo
Dim instance As ExpressionNode
Dim value As ExpressionNodeType

value = instance.Type
public ExpressionNodeType Type { get; }
public:
property ExpressionNodeType Type {
    ExpressionNodeType get ();
}
member Type : ExpressionNodeType
function get Type () : ExpressionNodeType

Valore proprietà

Tipo: Microsoft.SqlServer.Management.Dmf. . :: . .ExpressionNodeType
An ExpressionNodeType value that specifies the part of an expression that is represented by the expression node.

Osservazioni

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.

Esempi

C#

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