Metoda ExpressionNode.SerializeNodeWithResult
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
<STraceConfigurationAttribute(SkipAutoTrace := True)> _
Public Shared Function SerializeNodeWithResult ( _
node As ExpressionNode _
) As String
'Użycie
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
Parametry
- node
Typ: Microsoft.SqlServer.Management.Dmf.ExpressionNode
ExpressionNode Wartość obiektu, który określa węzeł wyrażenie.
Wartość zwracana
Typ: System.String
A String wartość zawiera węzeł serializowane wyrażenie w formacie tekstowym.
Przykłady
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);