Class PropertyTagsExtensions
Provides extension methods for the Property class to manage tags.
Inheritance
System.Object
Namespace: Umbraco.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public static class PropertyTagsExtensions
Methods
View SourceAssignTags(Property, IEnumerable<String>, Boolean, String)
Assign tags.
Declaration
public static void AssignTags(this Property property, IEnumerable<string> tags, bool merge = false, string culture = null)
Parameters
Type | Name | Description |
---|---|---|
Property | property | The property. |
System.Collections.Generic.IEnumerable<System.String> | tags | The tags. |
System.Boolean | merge | A value indicating whether to merge the tags with existing tags instead of replacing them. |
System.String | culture | A culture, for multi-lingual properties. |
RemoveTags(Property, IEnumerable<String>, String)
Removes tags.
Declaration
public static void RemoveTags(this Property property, IEnumerable<string> tags, string culture = null)
Parameters
Type | Name | Description |
---|---|---|
Property | property | The property. |
System.Collections.Generic.IEnumerable<System.String> | tags | The tags. |
System.String | culture | A culture, for multi-lingual properties. |