Share via


SimpleList.Count Property (BCL)

The Count property is a read-only Integer that returns the number of elements in the SimpleList object.

Definition

[Visual Basic .NET]

Public ReadOnly Property Count As Integer

[C#]

public int Count {get; }

Property Value

An Integer value containing the number of elements in the SimpleList object instance.

Exceptions

This property may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.

Remarks

The caller should always check this property before calling a SimpleList method or property that requires an array index in-value as a parameter (such as the Delete method).

See Also

SimpleList Class

Copyright © 2005 Microsoft Corporation.
All rights reserved.