VirtualTypeBuilder.ConstructorInfoCollection.Add Method ([])

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

'宣言
Public Function Add ( _
    argumentTypes As Type() _
) As Integer
'使用
Dim instance As VirtualTypeBuilder..::.ConstructorInfoCollection
Dim argumentTypes As Type()
Dim returnValue As Integer

returnValue = instance.Add(argumentTypes)
public int Add(
    Type[] argumentTypes
)
public:
int Add(
    array<Type^>^ argumentTypes
)
public function Add(
    argumentTypes : Type[]
) : int

Parameters

  • argumentTypes
    Type: []

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

Return Value

Type: System.Int32

The VirtualTypeBuilder.ConstructorInfoCollection index at which the value has been added.

Permissions

See Also

Reference

VirtualTypeBuilder.ConstructorInfoCollection Class

VirtualTypeBuilder.ConstructorInfoCollection Members

Add Overload

Microsoft.VisualStudio.Shell.Design Namespace