DesignerCollection 类
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示设计器的集合。
public ref class DesignerCollection : System::Collections::ICollection
C#
public class DesignerCollection : System.Collections.ICollection
type DesignerCollection = class
interface ICollection
interface IEnumerable
Public Class DesignerCollection
Implements ICollection
- 继承
-
DesignerCollection
- 实现
下面的代码示例使用指定的对象数组创建 DesignerCollection 初始化的 IDesignerHost 。
// 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 );
C#
// 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})
此集合对象可以存储对一组设计器的引用。
Designer |
初始化包含指定设计器的 DesignerCollection 类的新实例。 |
Designer |
初始化包含指定设计器集的 DesignerCollection 类的新实例。 |
Count |
获取集合中的设计器数。 |
Item[Int32] |
获取指定索引处的设计器。 |
Equals(Object) |
确定指定对象是否等于当前对象。 (继承自 Object) |
Get |
获取此集合的新枚举数。 |
Get |
作为默认哈希函数。 (继承自 Object) |
Get |
获取当前实例的 Type。 (继承自 Object) |
Memberwise |
创建当前 Object 的浅表副本。 (继承自 Object) |
To |
返回表示当前对象的字符串。 (继承自 Object) |
ICollection. |
|
ICollection. |
获取集合中包含的元素数。 |
ICollection. |
获取一个值,该值指示是否同步对 ICollection 的访问(线程安全)。 |
ICollection. |
获取可用于同步对集合的访问的对象。 |
IEnumerable. |
获取此集合的新枚举数。 |
Cast<TResult>(IEnumerable) |
将 IEnumerable 的元素强制转换为指定的类型。 |
Of |
根据指定类型筛选 IEnumerable 的元素。 |
As |
启用查询的并行化。 |
As |
将 IEnumerable 转换为 IQueryable。 |
产品 | 版本 |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |