Search Results for

    Show / Hide Table of Contents
    View Source

    Class NewEventArgs<TEntity>

    Inheritance
    object
    EventArgs
    CancellableEventArgs
    CancellableObjectEventArgs
    CancellableObjectEventArgs<TEntity>
    Namespace: Umbraco.Cms.Core.Events
    Assembly: Umbraco.Core.dll
    Syntax
    public class NewEventArgs<TEntity> : CancellableObjectEventArgs<TEntity>
    Type Parameters
    Name Description
    TEntity

    Constructors

    View Source

    NewEventArgs(TEntity, bool, string, int)

    Declaration
    public NewEventArgs(TEntity eventObject, bool canCancel, string alias, int parentId)
    Parameters
    Type Name Description
    TEntity eventObject
    bool canCancel
    string alias
    int parentId
    View Source

    NewEventArgs(TEntity, bool, string, int, EventMessages)

    Declaration
    public NewEventArgs(TEntity eventObject, bool canCancel, string alias, int parentId, EventMessages eventMessages)
    Parameters
    Type Name Description
    TEntity eventObject
    bool canCancel
    string alias
    int parentId
    EventMessages eventMessages
    View Source

    NewEventArgs(TEntity, bool, string, TEntity?)

    Declaration
    public NewEventArgs(TEntity eventObject, bool canCancel, string alias, TEntity? parent)
    Parameters
    Type Name Description
    TEntity eventObject
    bool canCancel
    string alias
    TEntity parent
    View Source

    NewEventArgs(TEntity, bool, string, TEntity?, EventMessages)

    Declaration
    public NewEventArgs(TEntity eventObject, bool canCancel, string alias, TEntity? parent, EventMessages eventMessages)
    Parameters
    Type Name Description
    TEntity eventObject
    bool canCancel
    string alias
    TEntity parent
    EventMessages eventMessages
    View Source

    NewEventArgs(TEntity, string, int)

    Declaration
    public NewEventArgs(TEntity eventObject, string alias, int parentId)
    Parameters
    Type Name Description
    TEntity eventObject
    string alias
    int parentId
    View Source

    NewEventArgs(TEntity, string, int, EventMessages)

    Declaration
    public NewEventArgs(TEntity eventObject, string alias, int parentId, EventMessages eventMessages)
    Parameters
    Type Name Description
    TEntity eventObject
    string alias
    int parentId
    EventMessages eventMessages
    View Source

    NewEventArgs(TEntity, string, TEntity?)

    Declaration
    public NewEventArgs(TEntity eventObject, string alias, TEntity? parent)
    Parameters
    Type Name Description
    TEntity eventObject
    string alias
    TEntity parent
    View Source

    NewEventArgs(TEntity, string, TEntity?, EventMessages)

    Declaration
    public NewEventArgs(TEntity eventObject, string alias, TEntity? parent, EventMessages eventMessages)
    Parameters
    Type Name Description
    TEntity eventObject
    string alias
    TEntity parent
    EventMessages eventMessages

    Properties

    View Source

    Alias

    Gets or Sets the Alias.

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

    Entity

    The entity being created

    Declaration
    public TEntity? Entity { get; }
    Property Value
    Type Description
    TEntity
    View Source

    Parent

    Gets or Sets the parent IContent object.

    Declaration
    public TEntity? Parent { get; }
    Property Value
    Type Description
    TEntity
    View Source

    ParentId

    Gets or Sets the Id of the parent.

    Declaration
    public int ParentId { get; }
    Property Value
    Type Description
    int

    Methods

    View Source

    Equals(object?)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current object.

    Returns
    Type Description
    bool

    true if the specified object is equal to the current object; otherwise, false.

    View Source

    Equals(NewEventArgs<TEntity>?)

    Indicates whether the current object is equal to another object of the same type.

    Declaration
    public bool Equals(NewEventArgs<TEntity>? other)
    Parameters
    Type Name Description
    NewEventArgs<TEntity> other

    An object to compare with this object.

    Returns
    Type Description
    bool

    true if the current object is equal to the other parameter; otherwise, false.

    View Source

    GetHashCode()

    Serves as the default hash function.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    Operators

    View Source

    operator ==(NewEventArgs<TEntity>, NewEventArgs<TEntity>)

    Declaration
    public static bool operator ==(NewEventArgs<TEntity> left, NewEventArgs<TEntity> right)
    Parameters
    Type Name Description
    NewEventArgs<TEntity> left
    NewEventArgs<TEntity> right
    Returns
    Type Description
    bool
    View Source

    operator !=(NewEventArgs<TEntity>, NewEventArgs<TEntity>)

    Declaration
    public static bool operator !=(NewEventArgs<TEntity> left, NewEventArgs<TEntity> right)
    Parameters
    Type Name Description
    NewEventArgs<TEntity> left
    NewEventArgs<TEntity> right
    Returns
    Type Description
    bool
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX