View Source
Tag service to query for tags in the tags db table. The tags returned are only relevant for published content &
saved media or members
Assembly: Umbraco.Core.dll
public interface ITagService : IService
Methods
View Source
GetAllContentTags(String, String)
Declaration
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
Declaration
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
Declaration
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
Declaration
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
GetTaggedContentByTag(String, String, String)
Gets all documents tagged with the specified tag.
Declaration
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.
Declaration
IEnumerable<TaggedEntity> GetTaggedContentByTagGroup(string group, string culture = null)
Parameters
Type |
Name |
Description |
System.String |
group |
|
System.String |
culture |
|
Returns
View Source
Declaration
TaggedEntity GetTaggedEntityById(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
View Source
Declaration
TaggedEntity GetTaggedEntityByKey(Guid key)
Parameters
Type |
Name |
Description |
Guid |
key |
|
Returns
View Source
Gets all media tagged with the specified tag.
Declaration
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
Gets all media tagged with any tag in the specified group.
Declaration
IEnumerable<TaggedEntity> GetTaggedMediaByTagGroup(string group, string culture = null)
Parameters
Type |
Name |
Description |
System.String |
group |
|
System.String |
culture |
|
Returns
View Source
Gets all members tagged with the specified tag.
Declaration
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
Gets all members tagged with any tag in the specified group.
Declaration
IEnumerable<TaggedEntity> GetTaggedMembersByTagGroup(string group, string culture = null)
Parameters
Type |
Name |
Description |
System.String |
group |
|
System.String |
culture |
|
Returns
View Source
Gets all tags attached to an entity.
Declaration
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
Gets all tags attached to an entity.
Declaration
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
Gets all tags attached to an entity via a property.
Declaration
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
Gets all tags attached to an entity via a property.
Declaration
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> |
|