共用方式為


ExpressionNode.Type 屬性

Gets the type of expression node.

命名空間:  Microsoft.SqlServer.Management.Dmf
組件:  Microsoft.SqlServer.Dmf (在 Microsoft.SqlServer.Dmf.dll 中)

語法

'宣告
Public ReadOnly Property Type As ExpressionNodeType 
    Get
'用途
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

屬性值

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

備註

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.

範例

C#

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

請參閱

參考

ExpressionNode 類別

Microsoft.SqlServer.Management.Dmf 命名空間