XMLNodes.Count Property
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 a count of the number of XML Document Object Model (DOM) node objects contained in the XMLNodesCollection collection.
public:
property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer
Property Value
Examples
In the following example, the Count property is used within a for loop to iterate through the collection of XML DOM node objects returned by the GetSelectedNodes() method of the ViewObject object and display a message box indicating the name of each XML DOM node that is contained in the XMLNodes collection:
XMLNodes selectedNodes;
selectedNodes = thisXDocument.View.GetSelectedNodes();
for (int i=0; i < selectedNodes.<span class="label">Count</span>; i++)
{
thisXDocument.UI.Alert("XML DOM node name: " + selectedNodes[i].nodeName);
}
Remarks
Important: This member can be accessed without restrictions.