Search Results for

    Show / Hide Table of Contents
    View Source

    Class PartialViewSnippetCollection

    The collection of partial view snippets.

    Inheritance
    System.Object
    BuilderCollectionBase<ISnippet>
    Namespace: Umbraco.Cms.Core.Snippets
    Assembly: Umbraco.Core.dll
    Syntax
    public class PartialViewSnippetCollection : BuilderCollectionBase<ISnippet>, IBuilderCollection<ISnippet>

    Constructors

    View Source

    PartialViewSnippetCollection(Func<IEnumerable<ISnippet>>)

    Declaration
    public PartialViewSnippetCollection(Func<IEnumerable<ISnippet>> items)
    Parameters
    Type Name Description
    Func<IEnumerable<ISnippet>> items

    Methods

    View Source

    GetContentFromName(String)

    Gets the content of a partial view snippet as a string.

    Declaration
    public string GetContentFromName(string snippetName)
    Parameters
    Type Name Description
    System.String snippetName

    The name of the snippet.

    Returns
    Type Description
    System.String

    The content of the partial view.

    View Source

    GetNames()

    Gets the partial view snippet names.

    Declaration
    public IEnumerable<string> GetNames()
    Returns
    Type Description
    IEnumerable<System.String>

    The names of all partial view snippets.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • PartialViewSnippetCollection(Func<IEnumerable<ISnippet>>)
    • Methods
      • GetContentFromName(String)
      • GetNames()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX