Condividi tramite


Metodo ExpressionNode.SerializeNodeWithResult

Serializes the expression node to a text string.

Spazio dei nomi  Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)

Sintassi

'Dichiarazione
<STraceConfigurationAttribute(SkipAutoTrace := True)> _
Public Shared Function SerializeNodeWithResult ( _
    node As ExpressionNode _
) As String
'Utilizzo
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

Parametri

Valore restituito

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

Esempi

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

Vedere anche

Riferimento

ExpressionNode Classe

Spazio dei nomi Microsoft.SqlServer.Management.Dmf