共用方式為


IComponentActivator.CreateInstance(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

參數

componentType
Type

要建立的元件型別。

傳回

新建立元件的參考。

適用於