Share via


_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

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.

See Also

Reference

_NavigationFolders Interface

_NavigationFolders Members

Microsoft.Office.Interop.Outlook Namespace