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
不是基于运行时的方法。
注解
为了提高性能,应缓存生成的实例以用于其他调用。