ServerViewableItems.DeleteAll Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Deletes references to all the objects in the ServerViewableItems collection in the _Workbook.
public:
void DeleteAll();
public void DeleteAll ();
Public Sub DeleteAll ()
Remarks
If you do not want any of the objects in the ServerViewableItems collection to be viewable on the server, use this method to remove them all at once.
Note: If the ServerViewableItems collection does not contain at least one Object, you will see the message "Unable to Display Specified Named Range or Item" when viewing the _Workbook in Excel Services.