Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PropertyDescriptor.CreateInstance Method (Type)


Creates an instance of the specified type.

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

protected object CreateInstance(
	Type type


Type: System.Type

A Type that represents the type to create.

Return Value

Type: System.Object

A new instance of the type.

CreateInstance looks for a constructor that takes the specified type. If it finds a constructor, the type of the property is passed in.

Converters and editors use this method to create versions of a component. This method enables a single component to be reused for more than one type.


for access to private class members and metadata. Associated enumeration: Unrestricted

.NET Framework
Available since 1.1
Return to top
© 2016 Microsoft