SettingsPropertyCollection 类

定义

包含 SettingsProperty 对象的集合。Contains a collection of SettingsProperty objects.

public ref class SettingsPropertyCollection : ICloneable, System::Collections::ICollection
public class SettingsPropertyCollection : ICloneable, System.Collections.ICollection
type SettingsPropertyCollection = class
    interface ICloneable
    interface ICollection
    interface IEnumerable
Public Class SettingsPropertyCollection
Implements ICloneable, ICollection
继承
SettingsPropertyCollection
实现

注解

集合包含对象的SettingsProperty集合。 SettingsPropertyCollectionThe SettingsPropertyCollection collection contains a collection of SettingsProperty objects. SettingsProperty对象在内部用作表示有关单个配置属性的元数据的类。A SettingsProperty object is used internally as the class that represents metadata about an individual configuration property.

构造函数

SettingsPropertyCollection()

初始化 SettingsPropertyCollection 类的新实例。Initializes a new instance of the SettingsPropertyCollection class.

属性

Count

获取一个值,指定集合中的 SettingsProperty 对象数。Gets a value that specifies the number of SettingsProperty objects in the collection.

IsSynchronized

获取一个值,指示对集合的访问是否同步(线程安全)。Gets a value that indicates whether access to the collection is synchronized (thread safe).

Item[String]

获取具有指定名称的集合项。Gets the collection item with the specified name.

SyncRoot

获取用于同步对集合的访问的对象。Gets the object to synchronize access to the collection.

方法

Add(SettingsProperty)

SettingsProperty 对象添加到集合中。Adds a SettingsProperty object to the collection.

Clear()

从集合中删除所有 SettingsProperty 对象。Removes all SettingsProperty objects from the collection.

Clone()

创建现有集合的一个副本。Creates a copy of the existing collection.

CopyTo(Array, Int32)

将此 SettingsPropertyCollection 对象复制到数组。Copies this SettingsPropertyCollection object to an array.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetEnumerator()

在将 IEnumerator 对象应用于集合时获取该对象。Gets the IEnumerator object as it applies to the collection.

GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
OnAdd(SettingsProperty)

在添加 SettingsPropertyCollection 实例的内容时执行其他自定义处理。Performs additional, custom processing when adding to the contents of the SettingsPropertyCollection instance.

OnAddComplete(SettingsProperty)

在添加 SettingsPropertyCollection 实例的内容之后执行其他自定义处理。Performs additional, custom processing after adding to the contents of the SettingsPropertyCollection instance.

OnClear()

在清除 SettingsPropertyCollection 实例的内容时执行其他自定义处理。Performs additional, custom processing when clearing the contents of the SettingsPropertyCollection instance.

OnClearComplete()

在清除 SettingsPropertyCollection 实例的内容之后执行其他自定义处理。Performs additional, custom processing after clearing the contents of the SettingsPropertyCollection instance.

OnRemove(SettingsProperty)

在移除 SettingsPropertyCollection 实例的内容时执行其他自定义处理。Performs additional, custom processing when removing the contents of the SettingsPropertyCollection instance.

OnRemoveComplete(SettingsProperty)

在移除 SettingsPropertyCollection 实例的内容之后执行其他自定义处理。Performs additional, custom processing after removing the contents of the SettingsPropertyCollection instance.

Remove(String)

从集合中移除 SettingsProperty 对象。Removes a SettingsProperty object from the collection.

SetReadOnly()

将集合设置为只读。Sets the collection to be read-only.

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

扩展方法

Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于

另请参阅