Class PropertyKeyedCollection

Class PropertyKeyedCollection

Il nome: Aspose.Tasks.Properties Assemblea: Aspose.Tasks.dll (25.4.0)

Una classe di base della raccolta di proprietà.

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

Tipo di parametri

T

Il tipo di proprietà.

Inheritance

object PropertyCollection PropertyKeyedCollection

Implements

ICollection , IEnumerable , IEnumerable

I membri ereditari

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

Constructors

PropertyKeyedCollection()

Inizia una nuova instanza della classe Aspose.Tasks.Properties.PropertyKeyedCollection`1.

protected PropertyKeyedCollection()

Properties

Count

Riceve il numero di proprietà nella collezione.

public int Count { get; }

Valore di proprietà

int

IsReadOnly

Riceve un valore che indica se questa raccolta è letta solo; altrimenti, falsa.

public abstract bool IsReadOnly { get; }

Valore di proprietà

bool

Names

Riceve la raccolta di tutti i nomi di proprietà.

public ICollection<string> Names { get; }

Valore di proprietà

ICollection di < string >

Questo[String]

Riceve la proprietà associata alla chiave specificata.

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

Valore di proprietà

T

Methods

Add(T)

Crea una nuova proprietà personalizzata.

public void Add(T item)

Parameters

item T

La proprietà da aggiungere.

Contains(String)

Determina se Aspose.Tasks.Properties.PropertyCollection`1 contiene una proprietà con il nome specificato.

public bool Contains(string name)

Parameters

name string

Il nome di una proprietà

Returns

bool

vero se l’Aspose.Tasks.Properties.PropertyCollection`1 contiene una proprietà con il nome specificato; altrimenti, falso.

 Italiano