SerializeNodeWithResult 方法
Serializes the expression node to a text string.
命名空间: Microsoft.SqlServer.Management.Dmf
程序集: Microsoft.SqlServer.Dmf(在 Microsoft.SqlServer.Dmf.dll 中)
语法
声明
<STraceConfigurationAttribute(SkipAutoTrace := True)> _
Public Shared Function SerializeNodeWithResult ( _
node As ExpressionNode _
) As String
用法
Dim node As ExpressionNode
Dim returnValue As String
returnValue = ExpressionNode.SerializeNodeWithResult(node)
[STraceConfigurationAttribute(SkipAutoTrace = true)]
public static string SerializeNodeWithResult(
ExpressionNode node
)
[STraceConfigurationAttribute(SkipAutoTrace = true)]
public:
static String^ SerializeNodeWithResult(
ExpressionNode^ node
)
[<STraceConfigurationAttribute(SkipAutoTrace = true)>]
static member SerializeNodeWithResult :
node:ExpressionNode -> string
public static function SerializeNodeWithResult(
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#
attr = new ExpressionNodeAttribute(pi.Name);
cnst = ExpressionNode.ConstructNode(adapter.GetPropertyValue (pi.Name));
expr = new ExpressionNodeOperator(OperatorType.EQ, attr, cnst);
bool res = (bool)expr.Evaluate(adapter);
string xmlstr = ExpressionNode.SerializeNodeWithResult(expr);