Share via


_XDocument4.SetNamedNodeProperty method (IXMLDOMNode, String, String)

Sets the value of a named property for the supplied XML node, which must be a nonattribute node in the main data source.

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

Syntax

'Declaration
Sub SetNamedNodeProperty ( _
    pxmlMainDOMNode As IXMLDOMNode, _
    bstrPropertyName As String, _
    bstrValue As String _
)
'Usage
Dim instance As _XDocument4
Dim pxmlMainDOMNode As IXMLDOMNode
Dim bstrPropertyName As String
Dim bstrValue As String

instance.SetNamedNodeProperty(pxmlMainDOMNode, _
    bstrPropertyName, bstrValue)
void SetNamedNodeProperty(
    IXMLDOMNode pxmlMainDOMNode,
    string bstrPropertyName,
    string bstrValue
)

Parameters

  • bstrPropertyName
    Type: System.String

    Specifies the name of the property being set.

  • bstrValue
    Type: System.String

    Specifies the value to which the property will be set.

Implements

_XDocument3.SetNamedNodeProperty(IXMLDOMNode, String, String)

Remarks

Named properties allow users to associate strings with user-defined properties of XML element nodes in the main data source. The value of a named property can be set by using the SetNamedNodeProperty method. Use the GetNamedNodeProperty method to read the value of a named property.

See also

Reference

_XDocument4 interface

_XDocument4 members

SetNamedNodeProperty overload

Microsoft.Office.Interop.InfoPath namespace