Table of Contents

Class TagCollection

Namespace
CMS.ContentEngine
Assembly
CMS.ContentEngine.dll

Represents a collection of tags and their children.

public class TagCollection
Inheritance
object
TagCollection
Extension Methods

Properties

TagIdentifiers

Collection of tag identifiers.

public HashSet<Guid> TagIdentifiers { get; set; }

Property Value

HashSet<Guid>

Methods

Create(IEnumerable<Guid>)

Creates a new instance of TagCollection from tagIdentifiers.

public static Task<TagCollection> Create(IEnumerable<Guid> tagIdentifiers)

Parameters

tagIdentifiers IEnumerable<Guid>

Tag identifiers.

Returns

Task<TagCollection>

Remarks

Ensures that identifiers of all tags specified by tagIdentifiers and their children are loaded into TagIdentifiers collection.

Create(IEnumerable<string>)

Creates a new instance of TagCollection from tagNames.

public static Task<TagCollection> Create(IEnumerable<string> tagNames)

Parameters

tagNames IEnumerable<string>

Tag names.

Returns

Task<TagCollection>

Remarks

Ensures that identifiers of all tags specified by tagNames and their children are loaded into TagIdentifiers collection.