InstanceCreationEditor.CreateInstance Method (ITypeDescriptorContext, Type)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public abstract object CreateInstance(
	ITypeDescriptorContext context,
	Type instanceType
)

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: