Search Results for

    Show / Hide Table of Contents
    View Source

    Class Notification

    Represents a notification subscription for a user on an entity.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    public class Notification

    Constructors

    View Source

    Notification(int, int, string, Guid)

    Initializes a new instance of the Notification class.

    Declaration
    public Notification(int entityId, int userId, string action, Guid entityType)
    Parameters
    Type Name Description
    int entityId

    The identifier of the entity being watched.

    int userId

    The identifier of the user subscribing to the notification.

    string action

    The action that triggers the notification.

    Guid entityType

    The type of entity being watched.

    Properties

    View Source

    Action

    Gets the action that triggers the notification.

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

    EntityId

    Gets the identifier of the entity being watched.

    Declaration
    public int EntityId { get; }
    Property Value
    Type Description
    int
    View Source

    EntityType

    Gets the type of entity being watched.

    Declaration
    public Guid EntityType { get; }
    Property Value
    Type Description
    Guid
    View Source

    UserId

    Gets the identifier of the user subscribing to the notification.

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