次の方法で共有


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

戻り値

Object

type と同じ型の Object

注釈

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

適用対象

こちらもご覧ください