Udostępnij za pośrednictwem


XMLNodes.Count Property

Definition

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

Applies to