Class PropertyKeyedCollection
Tên không gian: Aspose.Tasks.Properties Tổng hợp: Aspose.Tasks.dll (25.4.0)
Một lớp cơ sở của thu thập tài sản.
public abstract class PropertyKeyedCollection<t> : PropertyCollection<t>, ICollection<t>, IEnumerable<t>, IEnumerable where T : Property
Loại Parameters
T
Loại tài sản
Inheritance
object
←
PropertyCollection
Implements
ICollection
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()
Constructors
PropertyKeyedCollection()
Bắt đầu một trường hợp mới của lớp Aspose.Tasks.Properties.PropertyKeyedCollection`1.
protected PropertyKeyedCollection()
Properties
Count
Nhận số lượng tài sản trong bộ sưu tập.
public int Count { get; }
Giá trị bất động sản
IsReadOnly
Nó nhận được một giá trị cho thấy liệu bộ sưu tập này chỉ được đọc; nếu không, giả.
public abstract bool IsReadOnly { get; }
Giá trị bất động sản
Names
Nhận bộ sưu tập tất cả các tên tài sản.
public ICollection<string> Names { get; }
Giá trị bất động sản
ICollection < string >
cái này[String]
Nhận bất động sản liên quan đến chìa khóa được chỉ định.
public T this[string name] { get; protected set; }
Giá trị bất động sản
T
Methods
Add(T)
Tạo một tài sản tùy chỉnh mới.
public void Add(T item)
Parameters
item
T
Tài sản để thêm.
Contains(String)
Nó xác định xem Aspose.Tasks.Properties.PropertyCollection`1 có chứa một tài sản có tên được chỉ định hay không.
public bool Contains(string name)
Parameters
name
string
Tên của một tài sản
Returns
đúng nếu Aspose.Tasks.Properties.PropertyCollection`1 chứa một tài sản có tên được chỉ định; nếu không, giả.