Class PropertyKeyedCollection

Class PropertyKeyedCollection

Nom dels espais: Aspose.Tasks.Properties Assemblea: Aspose.Tasks.dll (25.4.0)

Una classe de base de la col·lecció de propietats.

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

Tipus de paràmetres

T

El tipus de propietat.

Inheritance

object PropertyCollection PropertyKeyedCollection

Implements

ICollection , IEnumerable , IEnumerable

Membres heretats

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

Constructors

PropertyKeyedCollection()

Inicialitza una nova instància de la classe Aspose.Tasks.Properties.PropertyKeyedCollection`1.

protected PropertyKeyedCollection()

Properties

Count

Obté el nombre de propietats en la col·lecci.

public int Count { get; }

Valor de la propietat

int

IsReadOnly

Obté un valor que indica si aquesta col·lecció és només llegida; d’altra banda, falsa.

public abstract bool IsReadOnly { get; }

Valor de la propietat

bool

Names

Obté la col·lecció de tots els noms de propietat.

public ICollection<string> Names { get; }

Valor de la propietat

ICollection < string >

Aquest[Tàrrega]

Obté la Propietat associada amb la clau especificada.

public T this[string name] { get; protected set; }

Valor de la propietat

T

Methods

Add(T)

Crea una nova propietat personalitzada.

public void Add(T item)

Parameters

item T

La propietat per afegir.

Contains(Tàrrega)

Determina si l’Aspose.Tasks.Properties.PropertyCollection`1 conté una propietat amb el nom especificat.

public bool Contains(string name)

Parameters

name string

El nom d’una propietat

Returns

bool

s veritat si l’Aspose.Tasks.Properties.PropertyCollection`1 conté una propietat amb el nom especificat; d’altra banda, falsa.

 Català