Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates an instance of a type.
Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'Declaration
Public Overridable Function InvokeConstructor ( _
    constructor As ConstructorInfo, _
    args As Object() _
) As Object
public virtual Object InvokeConstructor(
    ConstructorInfo constructor,
    Object[] args
)
public:
virtual Object^ InvokeConstructor(
    ConstructorInfo^ constructor, 
    array<Object^>^ args
)
abstract InvokeConstructor : 
        constructor:ConstructorInfo * 
        args:Object[] -> Object  
override InvokeConstructor : 
        constructor:ConstructorInfo * 
        args:Object[] -> Object
public function InvokeConstructor(
    constructor : ConstructorInfo, 
    args : Object[]
) : Object
Parameters
- constructor
 Type: ConstructorInfo
- args 
 Type: array<Object[]- The parameters to pass to the constructor. 
Return Value
Type: Object
An object that represents a created instance of a type.
Exceptions
| Exception | Condition | 
|---|---|
| NotImplementedException | If non-abstract derived class did not provide an implementation by overriding this method. | 
Remarks
Used by a type implementor to create an instance of a type. If the virtual type was marked as serializable, this object must be serializable as well.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.