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

要实例化的组件的类型。

返回

组件实例。

适用于