PropertyDescriptor::CreateInstance Method (Type^)

 

Creates an instance of the specified type.

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

protected:
Object^ CreateInstance(
	Type^ type
)

Parameters

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.

ReflectionPermission

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

.NET Framework
Available since 1.1
Return to top
Show: