_NavigationFolders.Remove(NavigationFolder) 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.
Removes an object from the collection.
public:
void Remove(Microsoft::Office::Interop::Outlook::NavigationFolder ^ RemovableFolder);
public void Remove (Microsoft.Office.Interop.Outlook.NavigationFolder RemovableFolder);
Public Sub Remove (RemovableFolder As NavigationFolder)
Parameters
- RemovableFolder
- NavigationFolder
The navigation folder to be removed.
Remarks
Only removable folders, NavigationFolder objects with an IsRemovable property value set to True, can be removed from a NavigationFolders collection. This means that you can use NavigationFolders.Remove to remove shared folders, public folders, and linked folders. However, you must use Delete() to remove any user-created folders.