Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

InstanceCreationEditor.CreateInstance Method

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft