Class RecycleBinEventArgs
Represents event data for recycle bin operations.
Namespace: Umbraco.Cms.Core.Events
Assembly: Umbraco.Core.dll
Syntax
public class RecycleBinEventArgs : CancellableEventArgs
Constructors
View SourceRecycleBinEventArgs(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. |
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 SourceIsContentRecycleBin
Boolean indicating whether this event was fired for the Content's Recycle Bin.
Declaration
public bool IsContentRecycleBin { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsMediaRecycleBin
Boolean indicating whether this event was fired for the Media's Recycle Bin.
Declaration
public bool IsMediaRecycleBin { get; }
Property Value
| Type | Description |
|---|---|
| bool |
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 |
RecycleBinEmptiedSuccessfully
Boolean indicating whether the Recycle Bin was emptied successfully
Declaration
public bool RecycleBinEmptiedSuccessfully { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
View SourceEquals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
Equals(RecycleBinEventArgs?)
Declaration
public bool Equals(RecycleBinEventArgs? other)
Parameters
| Type | Name | Description |
|---|---|---|
| RecycleBinEventArgs | other |
Returns
| Type | Description |
|---|---|
| bool |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |
Operators
View Sourceoperator ==(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 |
|
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 |
|