Class ComponentCollectionBuilder
Builds a ComponentCollection.
Inheritance
object
Namespace: Umbraco.Cms.Core.Composing
Assembly: Umbraco.Core.dll
Syntax
public class ComponentCollectionBuilder : OrderedCollectionBuilderBase<ComponentCollectionBuilder, ComponentCollection, IAsyncComponent>, ICollectionBuilder<ComponentCollection, IAsyncComponent>, ICollectionBuilder
Properties
View SourceThis
Declaration
protected override ComponentCollectionBuilder This { get; }
Property Value
| Type | Description |
|---|---|
| ComponentCollectionBuilder |
Methods
View SourceCreateItem(IServiceProvider, Type)
Creates a collection item.
Declaration
protected override IAsyncComponent CreateItem(IServiceProvider factory, Type itemType)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceProvider | factory | |
| Type | itemType |
Returns
| Type | Description |
|---|---|
| IAsyncComponent |
CreateItems(IServiceProvider)
Creates the collection items.
Declaration
protected override IEnumerable<IAsyncComponent> CreateItems(IServiceProvider factory)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceProvider | factory |
Returns
| Type | Description |
|---|---|
| IEnumerable<IAsyncComponent> | The collection items. |