Search Results for

    Show / Hide Table of Contents
    View Source

    Class PartialViewMacroSnippetCollection

    The collection of partial view macro snippets.

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

    Constructors

    View Source

    PartialViewMacroSnippetCollection(Func<IEnumerable<ISnippet>>)

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

    Methods

    View Source

    GetContentFromName(String)

    Gets the content of a partial view macro 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 macro.

    View Source

    GetNames()

    Gets the partial view macro snippet names.

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

    The names of all partial view macro snippets.

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