Compartilhar via


Método ExpressionNode.SerializeNode

Serializes the expression node to a text string.

Namespace:  Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (em Microsoft.SqlServer.Dmf.dll)

Sintaxe

'Declaração
Public Shared Function SerializeNode ( _
    node As ExpressionNode _
) As String
'Uso
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

Parâmetros

Valor de retorno

Tipo: System.String
A String value that contains the serialized expression node in text format.

Exemplos

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

Consulte também

Referência

ExpressionNode Classe

Namespace Microsoft.SqlServer.Management.Dmf