Class RecycleBinEventArgs
Inheritance
System.Object
System.EventArgs
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
public class RecycleBinEventArgs : CancellableEventArgs, IEquatable<CancellableEventArgs>, IEquatable<RecycleBinEventArgs>, IDeletingMediaFilesEventArgs
Constructors
RecycleBinEventArgs(Guid, Dictionary<Int32, IEnumerable<Property>>)
Declaration
public RecycleBinEventArgs(Guid nodeObjectType, Dictionary<int, IEnumerable<Property>> allPropertyData)
Parameters
Type |
Name |
Description |
System.Guid |
nodeObjectType |
|
System.Collections.Generic.Dictionary<System.Int32, System.Collections.Generic.IEnumerable<Property>> |
allPropertyData |
|
RecycleBinEventArgs(Guid, Dictionary<Int32, IEnumerable<Property>>, Boolean)
Declaration
public RecycleBinEventArgs(Guid nodeObjectType, Dictionary<int, IEnumerable<Property>> allPropertyData, bool emptiedSuccessfully)
Parameters
Type |
Name |
Description |
System.Guid |
nodeObjectType |
|
System.Collections.Generic.Dictionary<System.Int32, System.Collections.Generic.IEnumerable<Property>> |
allPropertyData |
|
System.Boolean |
emptiedSuccessfully |
|
RecycleBinEventArgs(Guid, IEnumerable<Int32>, List<String>)
Declaration
[Obsolete("Use the other ctor that specifies all property data instead")]
public RecycleBinEventArgs(Guid nodeObjectType, IEnumerable<int> ids, List<string> files)
Parameters
Type |
Name |
Description |
System.Guid |
nodeObjectType |
|
System.Collections.Generic.IEnumerable<System.Int32> |
ids |
|
System.Collections.Generic.List<System.String> |
files |
|
RecycleBinEventArgs(Guid, IEnumerable<Int32>, List<String>, Boolean)
Declaration
[Obsolete("Use the other ctor that specifies all property data instead")]
public RecycleBinEventArgs(Guid nodeObjectType, IEnumerable<int> ids, List<string> files, bool emptiedSuccessfully)
Parameters
Type |
Name |
Description |
System.Guid |
nodeObjectType |
|
System.Collections.Generic.IEnumerable<System.Int32> |
ids |
|
System.Collections.Generic.List<System.String> |
files |
|
System.Boolean |
emptiedSuccessfully |
|
Properties
AllPropertyData
Gets the list of all property data associated with a content id
Declaration
public Dictionary<int, IEnumerable<Property>> AllPropertyData { get; }
Property Value
Type |
Description |
System.Collections.Generic.Dictionary<System.Int32, System.Collections.Generic.IEnumerable<Property>> |
|
Files
Gets the list of Files that should be deleted as part
of emptying the Recycle Bin.
Declaration
public List<string> Files { get; }
Property Value
Type |
Description |
System.Collections.Generic.List<System.String> |
|
Ids
Gets the list of Ids for each of the items being deleted from the Recycle Bin.
Declaration
public IEnumerable<int> Ids { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.Int32> |
|
IsContentRecycleBin
Boolean indicating whether this event was fired for the Content's Recycle Bin.
Declaration
public bool IsContentRecycleBin { get; }
Property Value
Type |
Description |
System.Boolean |
|
Boolean indicating whether this event was fired for the Media's Recycle Bin.
Declaration
public bool IsMediaRecycleBin { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public List<string> MediaFilesToDelete { get; }
Property Value
Type |
Description |
System.Collections.Generic.List<System.String> |
|
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 |
System.Guid |
|
RecycleBinEmptiedSuccessfully
Boolean indicating whether the Recycle Bin was emptied successfully
Declaration
public bool RecycleBinEmptiedSuccessfully { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Equals(RecycleBinEventArgs)
Declaration
public bool Equals(RecycleBinEventArgs other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Operators
Equality(RecycleBinEventArgs, RecycleBinEventArgs)
Declaration
public static bool operator ==(RecycleBinEventArgs left, RecycleBinEventArgs right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(RecycleBinEventArgs, RecycleBinEventArgs)
Declaration
public static bool operator !=(RecycleBinEventArgs left, RecycleBinEventArgs right)
Parameters
Returns
Type |
Description |
System.Boolean |
|