Class PropertyKeyedCollection

Class PropertyKeyedCollection

Namn på plats: Aspose.Tasks.Properties Sammanfattning: Aspose.Tasks.dll (25.4.0)

En basklass av samling av fastigheter.

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

Typ av parametrar

T

Typen av egendom.

Inheritance

object PropertyCollection PropertyKeyedCollection

Implements

ICollection , IEnumerable , IEnumerable

Arvsmedlemmar

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

Constructors

PropertyKeyedCollection()

Initialiserar en ny instans av Aspose.Tasks.Properties.PropertyKeyedCollection`1 klass.

protected PropertyKeyedCollection()

Properties

Count

Få antalet fastigheter i samlingen.

public int Count { get; }

Fastighetsvärde

int

IsReadOnly

Det får ett värde som indikerar om denna samling är bara läst; annars, falsk.

public abstract bool IsReadOnly { get; }

Fastighetsvärde

bool

Names

Få samlingen av alla fastighetsnamn.

public ICollection<string> Names { get; }

Fastighetsvärde

ICollection ochlt; string >

Detta[Sträng]

Få egendomen som är kopplad till den angivna nyckeln.

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

Fastighetsvärde

T

Methods

Add(T)

Skapar en ny egendom.

public void Add(T item)

Parameters

item T

Fastigheten att lägga till.

Contains(Sträng)

Bestämmer om Aspose.Tasks.Properties.PropertyCollection`1 innehåller en egendom med det angivna namnet.

public bool Contains(string name)

Parameters

name string

Namnet på en fastighet

Returns

bool

gällande om Aspose.Tasks.Properties.PropertyCollection`1 innehåller en egendom med det angivna namnet; annars falsk.

 Svenska