_NavigationFolders.Remove Method
Removes an object from the collection.
Namespace: Microsoft.Office.Interop.Outlook
Assembly: Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)
Syntax
'Declaration
<DispIdAttribute()> _
Sub Remove ( _
RemovableFolder As NavigationFolder _
)
'Usage
Dim instance As _NavigationFolders
Dim RemovableFolder As NavigationFolder
instance.Remove(RemovableFolder)
[DispIdAttribute()]
void Remove(
NavigationFolder RemovableFolder
)
Parameters
RemovableFolder
Type: Microsoft.Office.Interop.Outlook.NavigationFolderThe 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 MAPIFolder.Delete to remove any user-created folders.