Creates an instance of the specified type.
[Visual Basic] Protected Function CreateInstance( _ ByVal type As Type _ ) As Object [C#] protected object CreateInstance( Type type ); [C++] protected: Object* CreateInstance( Type* type ); [JScript] protected function CreateInstance( type : Type ) : 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.
This method is used by converters and editors to create versions of a component. It allows a single component to be reused for more than one type.
PropertyDescriptor Class | PropertyDescriptor Members | System.ComponentModel Namespace