UpdateNode Method

Microsoft Robotics Studio

Updates all elements matching the xPath expression.

Namespace: Microsoft.Dss.Core.Utilities
Assembly:  DssBase (in DssBase.dll)
Version: 1.5.507.0

Syntax

public int UpdateNode(
    string xPath,
    string newInnerText,
    CodeProjectUpdateOptions options
)
'Declaration
Public Function UpdateNode ( _
    xPath As String, _
    newInnerText As String, _
    options As CodeProjectUpdateOptions _
) As Integer
public:
int UpdateNode (
    String^ xPath, 
    String^ newInnerText, 
    CodeProjectUpdateOptions options
)

Parameters

  • xPath
    String
    The XPath expression to match
  • newInnerText
    String
    The replacement text

Return Value

returns -1 if element was not found, 0 if found but value was identical, and 1 if value was updated.

See Also

CodeProject Class

Microsoft.Dss.Core.Utilities Namespace