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 the number of items in the XMLNodes collection.
public:
property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer
Property Value
The number of items in the XMLNodes collection.
Examples
The following code example uses the Count property to display the number of items in an XMLNodes collection. This example assumes that the current document contains an XMLNodes control named SampleInsertNodes
.
private void DisplayItemCount()
{
MessageBox.Show("SampleInsertNodes contains " +
this.SampleInsertNodes.Count.ToString() + " items.");
}
Private Sub DisplayItemCount()
MsgBox("SampleInsertNodes contains " & _
Me.SampleInsertNodes.Count.ToString() + " items.")
End Sub