Udostępnij przez


Metoda ExpressionNode.SerializeNode

Serializes węzeł wyrażenie do tekstu ciąg.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Dmf
Zestaw:  Microsoft.SqlServer.Dmf (w Microsoft.SqlServer.Dmf.dll)

Składnia

'Deklaracja
Public Shared Function SerializeNode ( _
    node As ExpressionNode _
) As String
'Użycie
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

Parametry

Wartość zwracana

Typ: System.String
A String wartość zawiera węzeł serializowane wyrażenie w formacie tekstowym.

Przykłady

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);