Search Results for

    Show / Hide Table of Contents
    View Source

    Interface ITagQuery

    Namespace: Umbraco.Cms.Core.PublishedCache
    Assembly: Umbraco.Core.dll
    Syntax
    public interface ITagQuery

    Methods

    View Source

    GetAllContentTags(String, String)

    Gets all document tags.

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

    GetAllMediaTags(String, String)

    Gets all media tags.

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

    GetAllMemberTags(String, String)

    Gets all member tags.

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

    GetAllTags(String, String)

    Gets all tags.

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

    GetContentByTag(String, String, String)

    Gets all documents tagged with the specified tag.

    Declaration
    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
    IEnumerable<IPublishedContent>
    View Source

    GetContentByTagGroup(String, String)

    Gets all documents tagged with any tag in the specified group.

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

    GetMediaByTag(String, String, String)

    Gets all media tagged with the specified tag.

    Declaration
    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
    IEnumerable<IPublishedContent>
    View Source

    GetMediaByTagGroup(String, String)

    Gets all media tagged with any tag in the specified group.

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

    GetTagsForEntity(Int32, String, String)

    Gets all tags attached to an entity.

    Declaration
    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
    IEnumerable<TagModel>
    View Source

    GetTagsForProperty(Int32, String, String, String)

    Gets all tags attached to an entity via a property.

    Declaration
    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
    IEnumerable<TagModel>
    • Improve this Doc
    • View Source
    In This Article
    • 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