Udostępnij za pośrednictwem


Metoda VirtualTypeBuilder.ConstructorInfoCollection.Add — (array<Type[], array<Attribute )

Dodaje tablicę ConstructorInfo do końca kolekcji.

Przestrzeń nazw:  Microsoft.VisualStudio.Shell.Design
Zestaw:  Microsoft.VisualStudio.Shell.Design (w Microsoft.VisualStudio.Shell.Design.dll)

Składnia

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

Parametry

  • argumentTypes
    Typ: array<System.Type[]
    Typy argumentów, które mają być przekazywane do konstruktora.Może to być nullodwołanie o wartości null (Nothing w języku Visual Basic) lub pustą tablicę zadeklarować pustego konstruktora.
  • attributes
    Typ: array<System.Attribute[]
    Tablica atrybuty, które mają być dołączone do tego konstruktora.Może to być nullodwołanie o wartości null (Nothing w języku Visual Basic) lub jest pusty.

Wartość zwracana

Typ: System.Int32
Indeks, w którym dodano wartość.

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

VirtualTypeBuilder.ConstructorInfoCollection Klasa

Przeciążenie Add

Przestrzeń nazw Microsoft.VisualStudio.Shell.Design