Class ReadOnlyCollectionBase

Class ReadOnlyCollectionBase

Tên không gian: Aspose.Tasks Tổng hợp: Aspose.Tasks.dll (25.4.0)

Nó đại diện cho một bộ sưu tập chỉ đọc của các đối tượng.

public abstract class ReadOnlyCollectionBase<t> : IList<t>, ICollection<t>, IEnumerable<t>, IEnumerable

Loại Parameters

T

Loại sản phẩm thu thập

Inheritance

object ReadOnlyCollectionBase

Implements

IList , ICollection , IEnumerable , IEnumerable

Thành viên thừa kế

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Properties

Count

Nhận được số lượng các đối tượng có trong đối tượng.

public int Count { get; }

Giá trị bất động sản

int

cái này[int]

Quay lại yếu tố vào chỉ số cụ thể.

public T this[int index] { get; set; }

Giá trị bất động sản

T

Methods

Add(T)

Đây là việc thực hiện chặt chẽ của phương pháp Add của ICollection, mà chỉ ném NotSupportedException

public void Add(T item)

Parameters

item T

mục để thêm.

GetEnumerator()

Quay lại một danh sách cho bộ sưu tập này.

public IEnumerator<t> GetEnumerator()

Returns

IEnumerator

Một danh sách cho bộ sưu tập này.

ToList()

Chuyển đổi đối tượng thu thập thành một danh sách các đối tượng Aspose.Tasks.VbaModule.

public List<t> ToList()

Returns

List

Danh sách các đối tượng

 Tiếng Việt