DesignerCollection DesignerCollection DesignerCollection DesignerCollection Class

定义

表示设计器的集合。Represents a collection of designers.

public ref class DesignerCollection : System::Collections::ICollection
public class DesignerCollection : System.Collections.ICollection
type DesignerCollection = class
    interface ICollection
    interface IEnumerable
Public Class DesignerCollection
Implements ICollection
继承
DesignerCollectionDesignerCollectionDesignerCollectionDesignerCollection
实现

示例

下面的代码示例使用指定DesignerCollectionIDesignerHost对象数组创建一个已初始化的。The following code example creates a DesignerCollection initialized with a specified array of IDesignerHost objects.

// Create a DesignerCollection using a constructor
// that accepts an array of IDesignerHost objects with 
// which to initialize the array.
array<IDesignerHost^>^temp0 = {designerhost1,designerhost2};
DesignerCollection^ collection = gcnew DesignerCollection( temp0 );
// Create a DesignerCollection using a constructor
// that accepts an array of IDesignerHost objects with 
// which to initialize the array.
DesignerCollection collection = new DesignerCollection( 
    new IDesignerHost[] { designerhost1, designerhost2 } );
' Create a DesignerCollection using a constructor
' that accepts an array of IDesignerHost objects with
' which to initialize the collection.
Dim collection As New DesignerCollection(New IDesignerHost() {designerhost1, designerhost2})

注解

此集合对象可以存储对一组设计器的引用。This collection object can store references to a set of designers.

构造函数

DesignerCollection(IDesignerHost[]) DesignerCollection(IDesignerHost[]) DesignerCollection(IDesignerHost[]) DesignerCollection(IDesignerHost[])

初始化包含指定设计器的 DesignerCollection 类的新实例。Initializes a new instance of the DesignerCollection class that contains the specified designers.

DesignerCollection(IList) DesignerCollection(IList) DesignerCollection(IList) DesignerCollection(IList)

初始化包含指定设计器集的 DesignerCollection 类的新实例。Initializes a new instance of the DesignerCollection class that contains the specified set of designers.

属性

Count Count Count Count

获取集合中的设计器数。Gets the number of designers in the collection.

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

获取指定索引处的设计器。Gets the designer at the specified index.

方法

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()

获取此集合的新枚举数。Gets a new enumerator for this 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)
ToString() ToString() ToString() ToString()

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

(Inherited from Object)

显式界面实现

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

将该集合的元素复制到 Array(从特定的 Array 索引开始)。Copies the elements of the collection to an Array, starting at a particular Array index.

ICollection.Count ICollection.Count ICollection.Count ICollection.Count

获取集合中包含的元素数。Gets the number of elements contained in the collection.

ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized

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

ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot

获取可用于同步对集合的访问的对象。Gets an object that can be used to synchronize access to the collection.

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

获取此集合的新枚举数。Gets a new enumerator for this collection.

扩展方法

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.

安全性

NamedPermissionSet
用于完全访问系统资源。for full access to system resources. 需求值: LinkDemandInheritanceDemandDemand values: LinkDemand, InheritanceDemand. 关联状态:Associated state:

适用于