Bagikan melalui


ObjectFactory Delegate

Definition

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 

Parameters

serviceProvider
IServiceProvider

The IServiceProvider to get service arguments from.

arguments
Object[]

Additional constructor arguments.

Return Value

The instantiated type.

Applies to