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, String)

Creates a component of the given class type and name and places it into the designer container.

[Visual Basic]
Overloads Function CreateComponent( _
   ByVal componentClass As Type, _
   ByVal name As String _
) As IComponent
[C#]
IComponent CreateComponent(
   Type componentClass,
   string name
);
[C++]
IComponent* CreateComponent(
   Type* componentClass,
   String* name
) = 0;
[JScript]
function CreateComponent(
   componentClass : Type,
   name : String
) : 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.
name
The name for the component.

Return Value

The newly created component.

See Also

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