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

適用於

另請參閱