NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

PropertyDescriptor.CreateInstance

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;

Parameters

type
A Type that represents the type to create.

Return Value

A new instance of the type.

Remarks

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.

See Also

PropertyDescriptor Class | PropertyDescriptor Members | System.ComponentModel Namespace