Search Results for

    Show / Hide Table of Contents
    View Source

    Class Tag

    Represents a tag entity.

    Inheritance
    object
    BeingDirtyBase
    EntityBase
    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    [Serializable]
    [DataContract(IsReference = true)]
    public class Tag : EntityBase, ITag, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty

    Constructors

    View Source

    Tag()

    Initializes a new instance of the Tag class.

    Declaration
    public Tag()
    View Source

    Tag(int, string, string, int?)

    Initializes a new instance of the Tag class.

    Declaration
    public Tag(int id, string group, string text, int? languageId = null)
    Parameters
    Type Name Description
    int id
    string group
    string text
    int? languageId

    Properties

    View Source

    Group

    Gets or sets the tag group.

    Declaration
    public string Group { get; set; }
    Property Value
    Type Description
    string
    View Source

    LanguageId

    Gets or sets the tag language.

    Declaration
    public int? LanguageId { get; set; }
    Property Value
    Type Description
    int?
    View Source

    NodeCount

    Gets the number of nodes tagged with this tag.

    Declaration
    public int NodeCount { get; set; }
    Property Value
    Type Description
    int
    Remarks

    Only when returning from queries.

    View Source

    Text

    Gets or sets the tag text.

    Declaration
    public string Text { get; set; }
    Property Value
    Type Description
    string
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX