語言

ConstructorInvoker.Create(ConstructorInfo) 方法

定義

建立一個新的 實例。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 不是基於執行時的方法。

備註

為了提升效能,所得實例應被快取以供額外呼叫。

適用於