IHoldsHandler IHoldsHandler IHoldsHandler Interface

Definition

Provides an interface that a custom hold handler can implement to provide custom hold processing.

public interface class IHoldsHandler
public interface IHoldsHandler
Public Interface IHoldsHandler

Remarks

When a list item is put on hold or removed from hold, a custom processing handler can be added by implementing the OnSetHold(SPListItem, SPListItem) and OnRemoveHold(SPListItem, List<SPListItem>) methods in the IHoldsHandler interface. After the handler has processed the list item, it can choose to cancel, continue, or skip default processing by returning the corresponiding HoldHandlerResult object.

Methods

OnRemoveHold(SPListItem, List<SPListItem>) OnRemoveHold(SPListItem, List<SPListItem>) OnRemoveHold(SPListItem, List<SPListItem>)

Processes the item when it is removed from hold.

OnSetHold(SPListItem, SPListItem) OnSetHold(SPListItem, SPListItem) OnSetHold(SPListItem, SPListItem)

Processes the item when it is put on hold.

Applies to