InstanceCreationEditor::CreateInstance Method (ITypeDescriptorContext^, Type^)

 

When overridden in a derived class, returns an instance of the specified type.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

public:
virtual Object^ CreateInstance(
	ITypeDescriptorContext^ context,
	Type^ instanceType
) abstract

Parameters

context
Type: System.ComponentModel::ITypeDescriptorContext^

The context information.

instanceType
Type: System::Type^

The specified type.

Return Value

Type: System::Object^

An instance of the specified type or null.

.NET Framework
Available since 2.0
Return to top
Show: