Search Results for

    Show / Hide Table of Contents

    Class TagQuery

    Implements .

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core
    Assembly: cs.temp.dll.dll
    Syntax
    public class TagQuery : ITagQuery

    Constructors

    TagQuery(ITagService, IPublishedContentQuery, IUmbracoMapper)

    Initializes a new instance of the TagQuery class.

    Declaration
    public TagQuery(ITagService tagService, IPublishedContentQuery contentQuery, IUmbracoMapper mapper)
    Parameters
    Type Name Description
    ITagService tagService
    IPublishedContentQuery contentQuery
    IUmbracoMapper mapper

    Methods

    GetAllContentTags(String, String)

    Declaration
    public IEnumerable<TagModel> GetAllContentTags(string group = null, string culture = null)
    Parameters
    Type Name Description
    System.String group
    System.String culture
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<TagModel>

    GetAllMediaTags(String, String)

    Declaration
    public IEnumerable<TagModel> GetAllMediaTags(string group = null, string culture = null)
    Parameters
    Type Name Description
    System.String group
    System.String culture
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<TagModel>

    GetAllMemberTags(String, String)

    Declaration
    public IEnumerable<TagModel> GetAllMemberTags(string group = null, string culture = null)
    Parameters
    Type Name Description
    System.String group
    System.String culture
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<TagModel>

    GetAllTags(String, String)

    Declaration
    public IEnumerable<TagModel> GetAllTags(string group = null, string culture = null)
    Parameters
    Type Name Description
    System.String group
    System.String culture
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<TagModel>

    GetContentByTag(String, String, String)

    Declaration
    public IEnumerable<IPublishedContent> GetContentByTag(string tag, string group = null, string culture = null)
    Parameters
    Type Name Description
    System.String tag
    System.String group
    System.String culture
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IPublishedContent>

    GetContentByTagGroup(String, String)

    Declaration
    public IEnumerable<IPublishedContent> GetContentByTagGroup(string group, string culture = null)
    Parameters
    Type Name Description
    System.String group
    System.String culture
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IPublishedContent>

    GetMediaByTag(String, String, String)

    Declaration
    public IEnumerable<IPublishedContent> GetMediaByTag(string tag, string group = null, string culture = null)
    Parameters
    Type Name Description
    System.String tag
    System.String group
    System.String culture
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IPublishedContent>

    GetMediaByTagGroup(String, String)

    Declaration
    public IEnumerable<IPublishedContent> GetMediaByTagGroup(string group, string culture = null)
    Parameters
    Type Name Description
    System.String group
    System.String culture
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IPublishedContent>

    GetTagsForEntity(Int32, String, String)

    Declaration
    public IEnumerable<TagModel> GetTagsForEntity(int contentId, string group = null, string culture = null)
    Parameters
    Type Name Description
    System.Int32 contentId
    System.String group
    System.String culture
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<TagModel>

    GetTagsForProperty(Int32, String, String, String)

    Declaration
    public IEnumerable<TagModel> GetTagsForProperty(int contentId, string propertyTypeAlias, string group = null, string culture = null)
    Parameters
    Type Name Description
    System.Int32 contentId
    System.String propertyTypeAlias
    System.String group
    System.String culture
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<TagModel>
    In This Article
    • Constructors
      • TagQuery(ITagService, IPublishedContentQuery, IUmbracoMapper)
    • Methods
      • GetAllContentTags(String, String)
      • GetAllMediaTags(String, String)
      • GetAllMemberTags(String, String)
      • GetAllTags(String, String)
      • GetContentByTag(String, String, String)
      • GetContentByTagGroup(String, String)
      • GetMediaByTag(String, String, String)
      • GetMediaByTagGroup(String, String)
      • GetTagsForEntity(Int32, String, String)
      • GetTagsForProperty(Int32, String, String, String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX