Example: Code to limit the number of child items under any item
Version:
The following Insert Options pipeline processor code implements the requirement that users cannot create more than a specified number of child items under any item:
Add the processor to the Insert Options pipeline definition in the web.config file after the existing Namespace.Pipelines.GetMasters.GetInsertRules processor but before the existing Namespace.Pipelines.GetMasters.CheckSecurity processor: