ConstructorInvoker.Create(ConstructorInfo) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立一個新的 實例。ConstructorInvoker
public:
static System::Reflection::ConstructorInvoker ^ Create(System::Reflection::ConstructorInfo ^ constructor);
public static System.Reflection.ConstructorInvoker Create(System.Reflection.ConstructorInfo constructor);
static member Create : System.Reflection.ConstructorInfo -> System.Reflection.ConstructorInvoker
Public Shared Function Create (constructor As ConstructorInfo) As ConstructorInvoker
參數
- constructor
- ConstructorInfo
將被召喚的建構者。
傳回
新的實例。
例外狀況
這 constructor 不是基於執行時的方法。
備註
為了提升效能,所得實例應被快取以供額外呼叫。