ObjectFactory 委托

定义

public delegate System::Object ^ ObjectFactory(IServiceProvider ^ serviceProvider, cli::array <System::Object ^> ^ arguments);
public delegate object ObjectFactory(IServiceProvider serviceProvider, object[] arguments);
type ObjectFactory = delegate of IServiceProvider * obj[] -> obj
Public Delegate Function ObjectFactory(serviceProvider As IServiceProvider, arguments As Object()) As Object 

参数

serviceProvider
IServiceProvider

要从中获取服务参数的 IServiceProviderThe IServiceProvider to get service arguments from.

arguments
Object[]

其他构造函数参数。Additional constructor arguments.

返回值

Object

实例化类型。The instantiated type.

继承
ObjectFactory

适用于