Freigeben über


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
'Usage
Dim instance As VirtualTypeBuilder..::..ConstructorInfoCollection
Dim argumentTypes As Type()
Dim attributes As Attribute()
Dim returnValue As Integer

returnValue = instance.Add(argumentTypes, _
    attributes)
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<System.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<System.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: System.Int32
The index at which the value has been added.

.NET Framework Security

See Also

Reference

VirtualTypeBuilder.ConstructorInfoCollection Class

VirtualTypeBuilder.ConstructorInfoCollection Members

Add Overload

Microsoft.VisualStudio.Shell.Design Namespace