共用方式為


Renderer.InstantiateComponent(Type) 方法

定義

建構指定型別的新元件。

protected:
 Microsoft::AspNetCore::Components::IComponent ^ InstantiateComponent(Type ^ componentType);
protected Microsoft.AspNetCore.Components.IComponent InstantiateComponent (Type componentType);
member this.InstantiateComponent : Type -> Microsoft.AspNetCore.Components.IComponent
Protected Function InstantiateComponent (componentType As Type) As IComponent

參數

componentType
Type

要具現化的元件類型。

傳回

元件執行個體。

適用於