WebPartManagerInternals.CreateObjectFromType(Type) メソッド

定義

メソッドに渡されるパラメーターに基づいてオブジェクトを作成します。

public:
 System::Object ^ CreateObjectFromType(Type ^ type);
public object CreateObjectFromType(Type type);
member this.CreateObjectFromType : Type -> obj
Public Function CreateObjectFromType (type As Type) As Object

パラメーター

type
Type

作成するオブジェクトの Type

返品

typeと同じ型のObject

注釈

このメソッドでは、 CodeGenerator クラスを使用して型を作成します。これは、 CreateInstance メソッドを使用するよりも優れたパフォーマンスを提供する代替手段です。

適用対象

こちらもご覧ください