VirtualTypeBuilder.ConstructorInfoCollection.Add 方法 (array<Type[], array<Attribute )

添加一个数组 ConstructorInfo 到集合的末尾。

命名空间:  Microsoft.VisualStudio.Shell.Design
程序集:  Microsoft.VisualStudio.Shell.Design(在 Microsoft.VisualStudio.Shell.Design.dll 中)

语法

声明
Public Function Add ( _
    argumentTypes As Type(), _
    attributes As Attribute() _
) As Integer
public int Add(
    Type[] argumentTypes,
    Attribute[] attributes
)

参数

  • argumentTypes
    类型:array<System.Type[]
    将传递的参数的类型传递给构造函数。这可能是 nullnull 引用(在 Visual Basic 中为 Nothing) 或声明一个空构造函数的空数组。
  • attributes
    类型:array<System.Attribute[]
    将附加属性设置为该构造函数。这可能是 nullnull 引用(在 Visual Basic 中为 Nothing) 或为空。

返回值

类型:System.Int32
已添加值处的索引。

.NET Framework 安全性

请参见

参考

VirtualTypeBuilder.ConstructorInfoCollection 类

Add 重载

Microsoft.VisualStudio.Shell.Design 命名空间