GetChild
Scans for a direct child datapoint of the current datapoint, by namespace and local name.
If a schema component has elements that contain mixed content, each displays an additional child node - text(). To retrieve the datapoint of a text() node, you will have to pass an empty string in strNamespace as well as "#text" in strLocalName and eSearchDatapointElement in searchFlags.
Signature
GetChild(in strNamespace as String, in strLocalName as String, in searchFlags as ENUMSearchDatapointFlags) -> Datapoint |
Parameters
Name | Type | Description |
---|---|---|
strNamespace | String | The namespace of the direct child datapoint. |
strLocalName | String | The name of the direct child datapoint. |
searchFlags | Search flags can be passed as combination of values (combined using binary OR) of the ENUMSearchDatapointFlags enumeration. |
Errors
Error code | Description |
---|---|
2000 | The object is no longer valid. |
2001 | Invalid address for the return parameter was specified. |
2002 | Datapoint not found. |