Udostępnij za pośrednictwem


InitString.GetOrCreateNode Method (XmlNode, String, String)

Retrieves first named node under parent node, or creates one if it does not exist.

Namespace: Microsoft.Uii.Common
Assembly: Microsoft.Uii.Common (in Microsoft.Uii.Common.dll)

Usage

'Usage
Dim parentNode As XmlNode
Dim childTagName As String
Dim insertUnderXPath As String
Dim returnValue As XmlNode

returnValue = Me.GetOrCreateNode(parentNode, childTagName, insertUnderXPath)

Syntax

'Declaration
Protected Function GetOrCreateNode ( _
    parentNode As XmlNode, _
    childTagName As String, _
    insertUnderXPath As String _
) As XmlNode
protected XmlNode GetOrCreateNode (
    XmlNode parentNode,
    string childTagName,
    string insertUnderXPath
)
protected:
XmlNode^ GetOrCreateNode (
    XmlNode^ parentNode, 
    String^ childTagName, 
    String^ insertUnderXPath
)
protected XmlNode GetOrCreateNode (
    XmlNode parentNode, 
    String childTagName, 
    String insertUnderXPath
)
protected function GetOrCreateNode (
    parentNode : XmlNode, 
    childTagName : String, 
    insertUnderXPath : String
) : XmlNode

Parameters

  • parentNode
    Specifies the parent node.
  • childTagName
    Specifies the name of the child tag.
  • insertUnderXPath
    Specifies the path to insert under.

Return Value

Type: XmlNode

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

See Also

Reference

InitString Class
InitString Members
Microsoft.Uii.Common Namespace

Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.