_XDocument3.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 _XDocument3
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
pxmlMainDOMNode
Type: Microsoft.Office.Interop.InfoPath.Xml.IXMLDOMNodeAn XML node corresponding to a nonattribute node in the main data source, for which a named property is to be set.
bstrPropertyName
Type: System.StringSpecifies the name of the property being set.
bstrValue
Type: System.StringSpecifies the value to which the property will be set.
Implements
_XDocument2.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.