Search Results for

    Show / Hide Table of Contents
    View Source

    Class RecycleBinEventArgs

    Represents event data for recycle bin operations.

    Inheritance
    object
    EventArgs
    CancellableEventArgs
    Namespace: Umbraco.Cms.Core.Events
    Assembly: Umbraco.Core.dll
    Syntax
    public class RecycleBinEventArgs : CancellableEventArgs

    Constructors

    View Source

    RecycleBinEventArgs(Guid)

    Initializes a new instance of the RecycleBinEventArgs class.

    Declaration
    public RecycleBinEventArgs(Guid nodeObjectType)
    Parameters
    Type Name Description
    Guid nodeObjectType

    The object type identifier of the items in the recycle bin.

    View Source

    RecycleBinEventArgs(Guid, EventMessages)

    Initializes a new instance of the RecycleBinEventArgs class.

    Declaration
    public RecycleBinEventArgs(Guid nodeObjectType, EventMessages eventMessages)
    Parameters
    Type Name Description
    Guid nodeObjectType

    The object type identifier of the items in the recycle bin.

    EventMessages eventMessages

    The event messages.

    Properties

    View Source

    IsContentRecycleBin

    Boolean indicating whether this event was fired for the Content's Recycle Bin.

    Declaration
    public bool IsContentRecycleBin { get; }
    Property Value
    Type Description
    bool
    View Source

    IsMediaRecycleBin

    Boolean indicating whether this event was fired for the Media's Recycle Bin.

    Declaration
    public bool IsMediaRecycleBin { get; }
    Property Value
    Type Description
    bool
    View Source

    NodeObjectType

    Gets the Id of the node object type of the items being deleted from the Recycle Bin.

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

    RecycleBinEmptiedSuccessfully

    Boolean indicating whether the Recycle Bin was emptied successfully

    Declaration
    public bool RecycleBinEmptiedSuccessfully { get; set; }
    Property Value
    Type Description
    bool

    Methods

    View Source

    Equals(object?)

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

    Equals(RecycleBinEventArgs?)

    Declaration
    public bool Equals(RecycleBinEventArgs? other)
    Parameters
    Type Name Description
    RecycleBinEventArgs other
    Returns
    Type Description
    bool
    View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    Operators

    View Source

    operator ==(RecycleBinEventArgs, RecycleBinEventArgs)

    Determines whether two RecycleBinEventArgs instances are equal.

    Declaration
    public static bool operator ==(RecycleBinEventArgs left, RecycleBinEventArgs right)
    Parameters
    Type Name Description
    RecycleBinEventArgs left

    The first instance to compare.

    RecycleBinEventArgs right

    The second instance to compare.

    Returns
    Type Description
    bool

    true if the instances are equal; otherwise, false.

    View Source

    operator !=(RecycleBinEventArgs, RecycleBinEventArgs)

    Determines whether two RecycleBinEventArgs instances are not equal.

    Declaration
    public static bool operator !=(RecycleBinEventArgs left, RecycleBinEventArgs right)
    Parameters
    Type Name Description
    RecycleBinEventArgs left

    The first instance to compare.

    RecycleBinEventArgs right

    The second instance to compare.

    Returns
    Type Description
    bool

    true if the instances are not equal; otherwise, false.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX