Class TagModel
Represents a tag data transfer model for API serialization.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
[DataContract(Name = "tag", Namespace = "")]
public class TagModel
Constructors
View SourceTagModel()
Declaration
public TagModel()
Properties
View SourceGroup
Gets or sets the group that the tag belongs to.
Declaration
[DataMember(Name = "group")]
public string? Group { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Id
Gets or sets the unique identifier of the tag.
Declaration
[DataMember(Name = "id", IsRequired = true)]
public int Id { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
NodeCount
Gets or sets the count of nodes that have this tag assigned.
Declaration
[DataMember(Name = "nodeCount")]
public int NodeCount { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Text
Gets or sets the text content of the tag.
Declaration
[DataMember(Name = "text", IsRequired = true)]
public string? Text { get; set; }
Property Value
| Type | Description |
|---|---|
| string |