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!

IDesignerHost.CreateComponent (Type)

Creates a component of the specified class type.

[Visual Basic]
Overloads Function CreateComponent( _
   ByVal componentClass As Type _
) As IComponent
[C#]
IComponent CreateComponent(
   Type componentClass
);
[C++]
IComponent* CreateComponent(
   Type* componentClass
) = 0;
[JScript]
function CreateComponent(
   componentClass : Type
) : IComponent;

Parameters

componentClass
The class of the component to create. Exceptions will be thrown if the class cannot be resolved into an object that implements IComponent.

Return Value

The newly created component.

Remarks

No name is specified with this method. The method creates the component and sites it into the designer container.

See Also

IDesignerHost Interface | IDesignerHost Members | System.ComponentModel.Design Namespace | IDesignerHost.CreateComponent Overload List | IComponent