SerializeNode 方法
Serializes the expression node to a text string.
命名空间: Microsoft.SqlServer.Management.Dmf
程序集: Microsoft.SqlServer.Dmf(在 Microsoft.SqlServer.Dmf.dll 中)
语法
声明
Public Shared Function SerializeNode ( _
node As ExpressionNode _
) As String
用法
Dim node As ExpressionNode
Dim returnValue As String
returnValue = ExpressionNode.SerializeNode(node)
public static string SerializeNode(
ExpressionNode node
)
public:
static String^ SerializeNode(
ExpressionNode^ node
)
static member SerializeNode :
node:ExpressionNode -> string
public static function SerializeNode(
node : ExpressionNode
) : String
参数
- node
类型:Microsoft.SqlServer.Management.Dmf. . :: . .ExpressionNode
An ExpressionNode object value that specifies the expression node.
返回值
类型:System. . :: . .String
A String value that contains the serialized expression node in text format.
示例
C#
string name = "my_name ";
ExpressionNode cnst1 = new ExpressionNodeConstant (name);
ExpressionNode attr1 = new ExpressionNodeAttribute ("Attribute");
ExpressionNode op1 = new ExpressionNodeOperator (OperatorType.EQ, attr1, cnst1);
string s = ExpressionNode.SerializeNode (op1);