Interface ICollectionBuilder<TCollection, TItem>
Represents a collection builder.
Namespace: Umbraco.Cms.Core.Composing
Assembly: Umbraco.Core.dll
Syntax
public interface ICollectionBuilder<out TCollection, TItem> : ICollectionBuilder where TCollection : IBuilderCollection<TItem>
  Type Parameters
| Name | Description | 
|---|---|
| TCollection | The type of the collection.  | 
      
| TItem | The type of the items.  | 
      
Methods
View SourceCreateCollection(IServiceProvider)
Creates a collection.
Declaration
TCollection CreateCollection(IServiceProvider factory)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IServiceProvider | factory | 
Returns
| Type | Description | 
|---|---|
| TCollection | A collection.  | 
      
Remarks
Creates a new collection each time it is invoked.