IComponentActivator.CreateInstance(Type) Methode

Definition

Erstellt eine Komponente des angegebenen Typs.

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

Parameter

componentType
Type

Der Typ der zu erstellenden Komponente.

Gibt zurück

Ein Verweis auf die neu erstellte Komponente.

Gilt für: