Class PropertyKeyedCollection
Namespace: Aspose.Tasks.Properties
Assembly: Aspose.Tasks.dll (25.12.0)
A base class of collection of properties.
public abstract class PropertyKeyedCollection<T> : PropertyCollection<T>, ICollection<T>, IEnumerable<T>, IEnumerable where T : PropertyType Parameters
T
The type of property.
Inheritance
object ← PropertyCollection<T> ← PropertyKeyedCollection<T>
Implements
ICollection<T> , IEnumerable<T> , IEnumerable
Inherited Members
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
PropertyKeyedCollection()
Initializes a new instance of the Aspose.Tasks.Properties.PropertyKeyedCollection`1 class.
protected PropertyKeyedCollection()Properties
Count
Gets the number of properties in the collection.
public int Count { get; }Property Value
IsReadOnly
Gets a value indicating whether this collection is read-only; otherwise, false.
public abstract bool IsReadOnly { get; }Property Value
Names
Gets the collection of all property names.
public ICollection<string> Names { get; }Property Value
ICollection < string >
this[string]
Gets the Property associated with the specified key.
public T this[string name] { get; protected set; }Property Value
T
Methods
Add(T)
Creates a new custom property.
public void Add(T item)Parameters
item T
The property to add.
Contains(string)
Determines whether the Aspose.Tasks.Properties.PropertyCollection`1 contains a property with the specified name.
public bool Contains(string name)Parameters
name string
The name of a property
Returns
true if the Aspose.Tasks.Properties.PropertyCollection`1 contains a property with the specified name; otherwise, false.