SettingsPropertyValueCollection SettingsPropertyValueCollection SettingsPropertyValueCollection SettingsPropertyValueCollection Class

定义

包含设置属性值的集合,这些值将 SettingsProperty 对象映射到 SettingsPropertyValue 对象。Contains a collection of settings property values that map SettingsProperty objects to SettingsPropertyValue objects.

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

构造函数

SettingsPropertyValueCollection() SettingsPropertyValueCollection() SettingsPropertyValueCollection() SettingsPropertyValueCollection()

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

属性

Count Count Count Count

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

IsSynchronized IsSynchronized IsSynchronized IsSynchronized

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

Item[String] Item[String] Item[String] Item[String]

获取集合中的项。Gets an item from the collection.

SyncRoot SyncRoot SyncRoot SyncRoot

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

方法

Add(SettingsPropertyValue) Add(SettingsPropertyValue) Add(SettingsPropertyValue) Add(SettingsPropertyValue)

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

Clear() Clear() Clear() Clear()

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

Clone() Clone() Clone() Clone()

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

CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

将此 SettingsPropertyValueCollection 集合复制到数组。Copies this SettingsPropertyValueCollection collection to an array.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

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

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
Remove(String) Remove(String) Remove(String) Remove(String)

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

SetReadOnly() SetReadOnly() SetReadOnly() SetReadOnly()

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

ToString() ToString() ToString() ToString()

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

(Inherited from Object)

扩展方法

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

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

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于