Share via


_XDocument2.SetNamedNodeProperty method

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.SemiTrust
Assembly:  Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)

Syntax

'Declaration
Sub SetNamedNodeProperty ( _
    pxmlMainDOMNode As IXMLDOMNode, _
    bstrPropertyName As String, _
    bstrValue As String _
)
'Usage
Dim instance As _XDocument2
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.

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.

Important

This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

See also

Reference

_XDocument2 interface

_XDocument2 members

Microsoft.Office.Interop.InfoPath.SemiTrust namespace