Class PartialViewSnippetCollection
Represents a collection of PartialViewSnippet instances.
Namespace: Umbraco.Cms.Core.Snippets
Assembly: Umbraco.Core.dll
Syntax
public class PartialViewSnippetCollection : BuilderCollectionBase<PartialViewSnippet>, IBuilderCollection<PartialViewSnippet>
Remarks
This collection contains all registered partial view snippets that can be used when creating new partial views in the Umbraco backoffice.
Constructors
View SourcePartialViewSnippetCollection(Func<IEnumerable<PartialViewSnippet>>)
Initializes a new instance of the PartialViewSnippetCollection class.
Declaration
public PartialViewSnippetCollection(Func<IEnumerable<PartialViewSnippet>> items)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<IEnumerable<PartialViewSnippet>> | items | A factory function that provides the partial view snippets. |