Use the following code sample to move a news item to the Recycle bin:
In the code above, you first get an instance of the NewsManager class. You get the news item by its master ID. Next, you call the MoveToRecycleBin method of the news manager. Finally, you save the changes.
To move a dynamic content item to the Recycle bin, you can use the following code sample:
In the code above, you first resolve the dynamic content type by calling the ResolveType method of the TypeResolutionService class. Next, you get an instance of the DynamicModuleManager class and find the dynamic content item by its master ID. Finally, you call the MoveToRecycleBin method of the dynamic module manager and save the changes.
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important
Copyright © 2020 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.
Progress, Telerik, Ipswitch, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.
Powered by Progress Sitefinity