UpsertChildAttribute Method
Microsoft Robotics Studio
If an element is already present then it is updated. Otherwise a new element is inserted.
Namespace: Microsoft.Dss.Core.Utilities
Assembly: DssBase (in DssBase.dll)
Version: 1.5.507.0
Syntax
public bool UpsertChildAttribute(
string xPathParentElement,
string childLocalName,
string innerText,
CodeProjectUpdateOptions options
)
'Declaration
Public Function UpsertChildAttribute ( _
xPathParentElement As String, _
childLocalName As String, _
innerText As String, _
options As CodeProjectUpdateOptions _
) As Boolean
public:
bool UpsertChildAttribute (
String^ xPathParentElement,
String^ childLocalName,
String^ innerText,
CodeProjectUpdateOptions options
)
Parameters
- xPathParentElement
String
The XPath expression identifying the parent XML element node
- childLocalName
String
The local name of the child node
- innerText
String
The inner text of the child node
- options
CodeProjectUpdateOptions
Options for how the update should be performed.
Return Value
true if node was updated or inserted; otherwise false
See Also
CodeProject Class
Microsoft.Dss.Core.Utilities Namespace