Class Tag
Represents a tag entity.
Namespace: Umbraco.Core.Models
Assembly: Umbraco.Core.dll
Syntax
[Serializable]
[DataContract(IsReference = true)]
public class Tag : EntityBase, ITag, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Constructors
View SourceTag()
Initializes a new instance of the Tag class.
Declaration
public Tag()
Tag(Int32, String, String, Nullable<Int32>)
Initializes a new instance of the Tag class.
Declaration
public Tag(int id, string group, string text, int? languageId = null)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | |
System.String | group | |
System.String | text | |
System.Nullable<System.Int32> | languageId |
Properties
View SourceGroup
Gets or sets the tag group.
Declaration
public string Group { get; set; }
Property Value
Type | Description |
---|---|
System.String |
LanguageId
Gets or sets the tag language.
Declaration
public int? LanguageId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
NodeCount
Gets the number of nodes tagged with this tag.
Declaration
public int NodeCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
Only when returning from queries.
Text
Gets or sets the tag text.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String |