ConstructorInfo.Invoke

From Xojo Documentation

Revision as of 13:39, 4 March 2010 by SteffX (talk) (SMBot: new page by automated transformation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Method

ConstructorInfo.Invoke([params() as Variant]) As Datatype of the object being instantiated.

Supported for all project types and targets.

Invokes the constructor. Pass the optional array of variants for the constructor's parameter values, if any. You will get an OutOfBoundsException if the number of parameters does not match or an IllegalCastException if the types do not match.