Class PropertyKeyedCollection
Class PropertyKeyedCollection
名称: Aspose.Tasks.Properties 集合: Aspose.Tasks.dll (25.4.0)
是财产收集的基础类。
public abstract class PropertyKeyedCollection<t> : PropertyCollection<t>, ICollection<t>, IEnumerable<t>, IEnumerable where T : Property
类型参数
T
财产类型。
Inheritance
object
←
PropertyCollection
Implements
ICollection
继承人
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
PropertyKeyedCollection()
启动 Aspose.Tasks.Properties.PropertyKeyedCollection`1 类的新例子。
protected PropertyKeyedCollection()
Properties
Count
收到收藏中的财产数量。
public int Count { get; }
财产价值
IsReadOnly
得到一个值,表明这个收藏是否仅是阅读;否则,假。
public abstract bool IsReadOnly { get; }
财产价值
Names
收集所有财产名称。
public ICollection<string> Names { get; }
财产价值
ICollection < string >
这个[线条]
收到与指定的密钥相关的财产。
public T this[string name] { get; protected set; }
财产价值
T
Methods
Add(T)
创建一个新的定制财产。
public void Add(T item)
Parameters
item
T
附加的财产。
Contains(线条)
确定 Aspose.Tasks.Properties.PropertyCollection`1 是否包含指定名称的属性。
public bool Contains(string name)
Parameters
name
string
财产的名称
Returns
如果 Aspose.Tasks.Properties.PropertyCollection`1 包含指定名称的属性;否则,虚假。