Interface ITagQuery
Namespace:System.Dynamic.ExpandoObject
Assembly:umbraco.dll
Syntax
public interface ITagQuery
Methods
GetAllContentTags(String)
Get all tags for content items (with optional group)
Declaration
IEnumerable<TagModel> GetAllContentTags(string group = null)
Parameters
Type |
Name |
Description |
System.String |
group |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TagModel> |
|
Get all tags for media items (with optional group)
Declaration
IEnumerable<TagModel> GetAllMediaTags(string group = null)
Parameters
Type |
Name |
Description |
System.String |
group |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TagModel> |
|
Get all tags for member items (with optional group)
Declaration
IEnumerable<TagModel> GetAllMemberTags(string group = null)
Parameters
Type |
Name |
Description |
System.String |
group |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TagModel> |
|
Get every tag stored in the database (with optional group)
Declaration
IEnumerable<TagModel> GetAllTags(string group = null)
Parameters
Type |
Name |
Description |
System.String |
group |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TagModel> |
|
GetContentByTag(String, String)
Returns all content that is tagged with the specified tag value and optional tag group
Declaration
IEnumerable<IPublishedContent> GetContentByTag(string tag, string tagGroup = null)
Parameters
Type |
Name |
Description |
System.String |
tag |
|
System.String |
tagGroup |
|
Returns
GetContentByTagGroup(String)
Returns all content that has been tagged with any tag in the specified group
Declaration
IEnumerable<IPublishedContent> GetContentByTagGroup(string tagGroup)
Parameters
Type |
Name |
Description |
System.String |
tagGroup |
|
Returns
Returns all Media that is tagged with the specified tag value and optional tag group
Declaration
IEnumerable<IPublishedContent> GetMediaByTag(string tag, string tagGroup = null)
Parameters
Type |
Name |
Description |
System.String |
tag |
|
System.String |
tagGroup |
|
Returns
Returns all Media that has been tagged with any tag in the specified group
Declaration
IEnumerable<IPublishedContent> GetMediaByTagGroup(string tagGroup)
Parameters
Type |
Name |
Description |
System.String |
tagGroup |
|
Returns
Returns all tags attached to an entity (content, media or member) by entity id
Declaration
IEnumerable<TagModel> GetTagsForEntity(int contentId, string tagGroup = null)
Parameters
Type |
Name |
Description |
System.Int32 |
contentId |
|
System.String |
tagGroup |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TagModel> |
|
Returns all tags attached to a property by entity id
Declaration
IEnumerable<TagModel> GetTagsForProperty(int contentId, string propertyTypeAlias, string tagGroup = null)
Parameters
Type |
Name |
Description |
System.Int32 |
contentId |
|
System.String |
propertyTypeAlias |
|
System.String |
tagGroup |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TagModel> |
|