Search Results for

    Show / Hide Table of Contents
    View Source

    Class Tag

    Represents a tag entity.

    Inheritance
    System.Object
    BeingDirtyBase
    EntityBase
    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    [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(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 Source

    Group

    Gets or sets the tag group.

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

    LanguageId

    Gets or sets the tag language.

    Declaration
    public int? LanguageId { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int32>
    View Source

    NodeCount

    Gets the number of nodes tagged with this tag.

    Declaration
    public int NodeCount { get; set; }
    Property Value
    Type Description
    System.Int32
    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
    System.String
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • Tag()
      • Tag(Int32, String, String, Nullable<Int32>)
    • Properties
      • Group
      • LanguageId
      • NodeCount
      • Text
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX