Class PartialViewSnippetSlim
A lightweight representation of a partial view snippet (i.e. without content).
Inheritance
object
Namespace: Umbraco.Cms.Core.Snippets
Assembly: Umbraco.Core.dll
Syntax
public class PartialViewSnippetSlim
Remarks
This class is used for listing snippets without loading their full content, improving performance when displaying available snippets in the UI.
Constructors
View SourcePartialViewSnippetSlim(string, string)
Initializes a new instance of the PartialViewSnippetSlim class.
Declaration
public PartialViewSnippetSlim(string id, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | The unique identifier for the snippet. |
| string | name | The display name of the snippet. |
Properties
View SourceId
Gets the ID of the snippet.
Declaration
public string Id { get; }
Property Value
| Type | Description |
|---|---|
| string |
Name
Gets the name of the snippet.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |