Condividi tramite


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

Adds an array of ConstructorInfo to the end of the collection.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'Declaration
Public Function Add ( _
    argumentTypes As Type(), _
    attributes As Attribute() _
) As Integer
public int Add(
    Type[] argumentTypes,
    Attribute[] attributes
)
public:
int Add(
    array<Type^>^ argumentTypes, 
    array<Attribute^>^ attributes
)
member Add : 
        argumentTypes:Type[] * 
        attributes:Attribute[] -> int
public function Add(
    argumentTypes : Type[], 
    attributes : Attribute[]
) : int

Parameters

  • argumentTypes
    Type: array<Type[]

    The types of arguments to be passed to the constructor. This can be nulla null reference (Nothing in Visual Basic) or an empty array to declare an empty constructor.

  • attributes
    Type: array<Attribute[]

    An array of attributes to be attached to this constructor. This may be nulla null reference (Nothing in Visual Basic) or empty.

Return Value

Type: Int32
The index at which the value has been added.

.NET Framework Security

See Also

Reference

VirtualTypeBuilder.ConstructorInfoCollection Class

Add Overload

Microsoft.VisualStudio.Shell.Design Namespace