Utility Functions and C Language Reference > .NET Vuser Functions > Alphabetical List of Functions > InvokeConstructor

InvokeConstructor

Example: InvokeConstructor Alphabetical List of Functions

Invokes a constructor.

object InvokeConstructor(Type type, int metadataToken, object[] parameters);
type The type of object to create.
metadataToken The metadataToken of the constructor.
parameters The constructor parameters.

InvokeConstructor invokes the constructors indicated by the type and parameters. It returns the constructor instance.

Note: Do not add this function manually to a script. It is generated by VuGen automatically.

Parameterization

Parameterization is not applicable to this function.