DataSource.GetNamedNodeProperty(XPathNavigator, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the value of a named property for the specified XML node, which must be a nonattribute node in the main data source.
public:
abstract System::String ^ GetNamedNodeProperty(System::Xml::XPath::XPathNavigator ^ target, System::String ^ name);
public abstract string GetNamedNodeProperty (System.Xml.XPath.XPathNavigator target, string name);
abstract member GetNamedNodeProperty : System.Xml.XPath.XPathNavigator * string -> string
Public MustOverride Function GetNamedNodeProperty (target As XPathNavigator, name As String) As String
Parameters
- target
- XPathNavigator
An XPathNavigator object positioned at the XML node corresponding to a nonattribute node in the main data source, for which a named property is to be returned.
- name
- String
The name of the property whose value is to be returned.
Returns
The value of the specified named property.
Exceptions
The parameters passed to this method arenot valid. For example, they are of the wrong type or format.
The parameters passed to this method are a null reference (Nothing in Visual Basic).
Remarks
Named properties allow users to associate strings with user-defined properties of XML element nodes in the main data source. Use the GetNamedNodeProperty method to read the value of a named property. The value of a named property can be set by using the SetNamedNodeProperty(XPathNavigator, String, String) method.
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.
This type or member can be accessed from code running in forms opened in Microsoft InfoPath Filler or in a Web browser.