Tag service to query for tags in the tags db table. The tags returned are only relevant for published content & saved media or members
InheritanceSystem.Object
Namespace: Umbraco.Cms.Core.Services Assembly: Umbraco.Core.dll Syntaxpublic class TagService : RepositoryService, ITagService, IService
Constructors View Source TagService(ICoreScopeProvider, ILoggerFactory, IEventMessagesFactory, ITagRepository) Declaration
public TagService(ICoreScopeProvider provider, ILoggerFactory loggerFactory, IEventMessagesFactory eventMessagesFactory, ITagRepository tagRepository)
Parameters Methods View Source GetAllAsync(String, String) Declaration
public Task<IEnumerable<ITag>> GetAllAsync(string group = null, string culture = null)
Parameters Type Name Description System.String group System.String culture Returns Type Description Task<IEnumerable<ITag>> View Source GetAllContentTags(String, String)
Gets all document tags.
Declarationpublic IEnumerable<ITag> GetAllContentTags(string group = null, string culture = null)
Parameters Type Name Description System.String group System.String culture Returns Type Description IEnumerable<ITag> View Source GetAllMediaTags(String, String)
Gets all media tags.
Declarationpublic IEnumerable<ITag> GetAllMediaTags(string group = null, string culture = null)
Parameters Type Name Description System.String group System.String culture Returns Type Description IEnumerable<ITag> View Source GetAllMemberTags(String, String)
Gets all member tags.
Declarationpublic IEnumerable<ITag> GetAllMemberTags(string group = null, string culture = null)
Parameters Type Name Description System.String group System.String culture Returns Type Description IEnumerable<ITag> View Source GetAllTags(String, String)
Gets all tags.
Declarationpublic IEnumerable<ITag> GetAllTags(string group = null, string culture = null)
Parameters Type Name Description System.String group System.String culture Returns Type Description IEnumerable<ITag> View Source GetByQueryAsync(String, String, String) Declaration
public async Task<IEnumerable<ITag>> GetByQueryAsync(string query, string group = null, string culture = null)
Parameters Type Name Description System.String query System.String group System.String culture Returns Type Description Task<IEnumerable<ITag>> View Source GetTaggedContentByTag(String, String, String)
Gets all documents tagged with the specified tag.
Declarationpublic IEnumerable<TaggedEntity> GetTaggedContentByTag(string tag, string group = null, string culture = null)
Parameters Type Name Description System.String tag System.String group System.String culture Returns View Source GetTaggedContentByTagGroup(String, String)
Gets all documents tagged with any tag in the specified group.
Declarationpublic IEnumerable<TaggedEntity> GetTaggedContentByTagGroup(string group, string culture = null)
Parameters Type Name Description System.String group System.String culture Returns View Source GetTaggedEntityById(Int32)
Gets a tagged entity.
Declarationpublic TaggedEntity GetTaggedEntityById(int id)
Parameters Type Name Description System.Int32 id Returns View Source GetTaggedEntityByKey(Guid)
Gets a tagged entity.
Declarationpublic TaggedEntity GetTaggedEntityByKey(Guid key)
Parameters Type Name Description Guid key Returns View Source GetTaggedMediaByTag(String, String, String)
Gets all media tagged with the specified tag.
Declarationpublic IEnumerable<TaggedEntity> GetTaggedMediaByTag(string tag, string group = null, string culture = null)
Parameters Type Name Description System.String tag System.String group System.String culture Returns View Source GetTaggedMediaByTagGroup(String, String)
Gets all media tagged with any tag in the specified group.
Declarationpublic IEnumerable<TaggedEntity> GetTaggedMediaByTagGroup(string group, string culture = null)
Parameters Type Name Description System.String group System.String culture Returns View Source GetTaggedMembersByTag(String, String, String)
Gets all members tagged with the specified tag.
Declarationpublic IEnumerable<TaggedEntity> GetTaggedMembersByTag(string tag, string group = null, string culture = null)
Parameters Type Name Description System.String tag System.String group System.String culture Returns View Source GetTaggedMembersByTagGroup(String, String)
Gets all members tagged with any tag in the specified group.
Declarationpublic IEnumerable<TaggedEntity> GetTaggedMembersByTagGroup(string group, string culture = null)
Parameters Type Name Description System.String group System.String culture Returns View Source GetTagsForEntity(Guid, String, String)
Gets all tags attached to an entity.
Declarationpublic IEnumerable<ITag> GetTagsForEntity(Guid contentId, string group = null, string culture = null)
Parameters Type Name Description Guid contentId System.String group System.String culture Returns Type Description IEnumerable<ITag> View Source GetTagsForEntity(Int32, String, String)
Gets all tags attached to an entity.
Declarationpublic IEnumerable<ITag> 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<ITag> View Source GetTagsForProperty(Guid, String, String, String)
Gets all tags attached to an entity via a property.
Declarationpublic IEnumerable<ITag> GetTagsForProperty(Guid contentId, string propertyTypeAlias, string group = null, string culture = null)
Parameters Type Name Description Guid contentId System.String propertyTypeAlias System.String group System.String culture Returns Type Description IEnumerable<ITag> View Source GetTagsForProperty(Int32, String, String, String)
Gets all tags attached to an entity via a property.
Declarationpublic IEnumerable<ITag> 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<ITag>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4