Table of Contents

Interface IRecyclable<T>

Namespace
Dynamicweb.Core
Assembly
Dynamicweb.Core.dll
Defines operations supporting recycling functionality
[InheritedExport]
public interface IRecyclable<in T> where T : class

Type Parameters

T
The generic type T for the recycler

Methods

MoveToBin(T)

Moves the object to the recycle bin
Guid MoveToBin(T obj)

Parameters

obj T
The object to move to the bin

Returns

Guid
The newly assigned unit id for the Recycle Bin

MoveToExistingBin(T, Guid)

Moves the object to the recycle bin and asscociates it with an already existing bin with the specified unit id
void MoveToExistingBin(T obj, Guid unitId)

Parameters

obj T
The object of the generic type T to move to the recycle bin
unitId Guid
The unit id identifying all objects part of a specific recycle bin

Restore(object)

Restores the object with the specified id
void Restore(object id)

Parameters

id object
The id of the object to restore
To top