ImmutableArray<T>.IReadOnlyCollection<T>.Count 属性

定义

获取集合中的项数。Gets the number of items in the collection.

property int System::Collections::Generic::IReadOnlyCollection<T>::Count { int get(); };
int System.Collections.Generic.IReadOnlyCollection<T>.Count { get; }
member this.System.Collections.Generic.IReadOnlyCollection<T>.Count : int
 ReadOnly Property Count As Integer Implements IReadOnlyCollection(Of T).Count

属性值

Int32

集合中项的数目。The number of items in the collection.

实现

例外

IsDefault 属性返回 true 时引发。Thrown if the IsDefault property returns true.

适用于