Edit

Share via


_XDocument2.SetNamedNodeProperty(IXMLDOMNode, String, String) Method

Definition

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

public:
 void SetNamedNodeProperty(Microsoft::Office::Interop::InfoPath::SemiTrust::IXMLDOMNode ^ pxmlMainDOMNode, System::String ^ bstrPropertyName, System::String ^ bstrValue);
public void SetNamedNodeProperty (Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMNode pxmlMainDOMNode, string bstrPropertyName, string bstrValue);
abstract member SetNamedNodeProperty : Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMNode * string * string -> unit
Public Sub SetNamedNodeProperty (pxmlMainDOMNode As IXMLDOMNode, bstrPropertyName As String, bstrValue As String)

Parameters

pxmlMainDOMNode
IXMLDOMNode

An XML node corresponding to a nonattribute node in the main data source, for which a named property is to be set.

bstrPropertyName
String

Specifies the name of the property being set.

bstrValue
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(Object, String, String) 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.

Applies to