共用方式為


VirtualTypeBuilder.ConstructorInfoCollection.Add Method

Definition

Overloads

Add(ConstructorInfo)

Adds a ConstructorInfo to the end of the collection.

Add(Type[])

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

Add(Type[], Attribute[])

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

Add(ConstructorInfo)

Adds a ConstructorInfo to the end of the collection.

public:
 int Add(System::Reflection::ConstructorInfo ^ value);
public int Add (System.Reflection.ConstructorInfo value);
member this.Add : System.Reflection.ConstructorInfo -> int
Public Function Add (value As ConstructorInfo) As Integer

Parameters

value
ConstructorInfo

The ConstructorInfo to be added to the end of the collection.

Returns

The index at which the value has been added.

Applies to

Add(Type[])

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

public:
 int Add(cli::array <Type ^> ^ argumentTypes);
public:
 int Add(Platform::Array <Platform::Type ^> ^ argumentTypes);
public int Add (Type[] argumentTypes);
member this.Add : Type[] -> int
Public Function Add (argumentTypes As Type()) As Integer

Parameters

argumentTypes
Type[]

The types of arguments to be passed to the constructor. This can be null or an empty array to declare an empty constructor.

Returns

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

Applies to

Add(Type[], Attribute[])

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

public:
 int Add(cli::array <Type ^> ^ argumentTypes, cli::array <Attribute ^> ^ attributes);
public:
 int Add(Platform::Array <Platform::Type ^> ^ argumentTypes, Platform::Array <Platform::Metadata::Attribute ^> ^ attributes);
public int Add (Type[] argumentTypes, Attribute[] attributes);
member this.Add : Type[] * Attribute[] -> int
Public Function Add (argumentTypes As Type(), attributes As Attribute()) As Integer

Parameters

argumentTypes
Type[]

The types of arguments to be passed to the constructor. This can be null or an empty array to declare an empty constructor.

attributes
Attribute[]

An array of attributes to be attached to this constructor. This may be null or empty.

Returns

The index at which the value has been added.

Applies to