VirtualTypeImplementor.InvokeConstructor Method

Creates an instance of a type.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'宣言
Public Overridable Function InvokeConstructor ( _
    ctor As ConstructorInfo, _
    args As Object() _
) As Object
'使用
Dim instance As VirtualTypeImplementor
Dim ctor As ConstructorInfo
Dim args As Object()
Dim returnValue As Object

returnValue = instance.InvokeConstructor(ctor, _
    args)
public virtual Object InvokeConstructor(
    ConstructorInfo ctor,
    Object[] args
)
public:
virtual Object^ InvokeConstructor(
    ConstructorInfo^ ctor, 
    array<Object^>^ args
)
public function InvokeConstructor(
    ctor : ConstructorInfo, 
    args : Object[]
) : Object

Parameters

  • args
    Type: []

    The parameters to pass to the constructor.

Return Value

Type: System.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.

Permissions

See Also

Reference

VirtualTypeImplementor Class

VirtualTypeImplementor Members

Microsoft.VisualStudio.Shell.Design Namespace