Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    PartialViewSnippetSlim(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 Source

    Id

    Gets the ID of the snippet.

    Declaration
    public string Id { get; }
    Property Value
    Type Description
    string
    View Source

    Name

    Gets the name of the snippet.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    string
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX