Click or drag to resize

FactoryCreateMany Method (String, Object)

Creates instances of the specified type depending on the ComponentAttribute

Namespace:  Cauldron.Activator
Assembly:  Cauldron.Activator (in Cauldron.Activator.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public static IEnumerable CreateMany(
	string contractName,
	params Object[] parameters
)

Parameters

contractName
Type: SystemString
The name that identifies the type
parameters
Type: SystemObject
An array of arguments that match in number, order, and type the parameters of the constructor to invoke. If args is an empty array or null, the constructor that takes no parameters (the default constructor) is invoked.

Return Value

Type: IEnumerable
A collection of the newly created objects.
Exceptions
ExceptionCondition
KeyNotFoundException The contract described by contractName was not found
ExceptionUnknown FactoryCreationPolicy
NotSupportedException An Object with Singleton with an implemented IDisposable must also implement the IDisposableObject interface.
See Also