Share via


IComponentActivator.CreateInstance(Type) Method

Definition

Creates a component of the specified type.

public:
 Microsoft::AspNetCore::Components::IComponent ^ CreateInstance(Type ^ componentType);
public Microsoft.AspNetCore.Components.IComponent CreateInstance (Type componentType);
abstract member CreateInstance : Type -> Microsoft.AspNetCore.Components.IComponent
Public Function CreateInstance (componentType As Type) As IComponent

Parameters

componentType
Type

The type of component to create.

Returns

A reference to the newly created component.

Applies to