WebPartManagerInternals.CreateObjectFromType(Type) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
根據傳遞給方法的參數建立物件。
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
相同型別的 Object。
備註
方法 CodeGenerator 會使用類別來建立類型,這是提供比使用方法更佳效能的替代方案 CreateInstance 。