다음을 통해 공유


ExpressionNode.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

매개 변수

반환 값

유형: 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);

참고 항목

참조

ExpressionNode 클래스

Microsoft.SqlServer.Management.Dmf 네임스페이스