Class PropertyKeyedCollection

Class PropertyKeyedCollection

Namespace: Aspose.Tasks.Properties
Assembly: Aspose.Tasks.dll (25.2.0)

A base class of collection of properties.

public abstract class PropertyKeyedCollection<t> : PropertyCollection<t>, ICollection<t>, IEnumerable<t>, IEnumerable where T : Property

Type Parameters

T

The type of property.

Inheritance

objectPropertyCollection<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

int

IsReadOnly

Gets a value indicating whether this collection is read-only; otherwise, false.

public abstract bool IsReadOnly { get; }

Property Value

bool

Names

Gets the collection of all property names.

public ICollection<string> Names { get; }

Property Value

ICollection<string&gt;

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

bool

true if the Aspose.Tasks.Properties.PropertyCollection`1 contains a property with the specified name; otherwise, false. </t></t></t></t>