_NavigationFolders.Add Method

Adds the specified Folder, as a NavigationFolder object, to the end of the NavigationFolders collection.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Function Add ( _
    Folder As MAPIFolder _
) As NavigationFolder
'Usage
Dim instance As _NavigationFolders
Dim Folder As MAPIFolder
Dim returnValue As NavigationFolder

returnValue = instance.Add(Folder)
[DispIdAttribute()]
NavigationFolder Add(
    MAPIFolder Folder
)

Parameters

Return Value

Type: Microsoft.Office.Interop.Outlook.NavigationFolder
A NavigationFolder object that represents the new navigation folder.

Remarks

A folder can only appear in one navigation group. When adding a Folder object to a new navigation group, any references to that Folder are removed from any other navigation group of which it was previously a member.

See Also

Reference

_NavigationFolders Interface

_NavigationFolders Members

Microsoft.Office.Interop.Outlook Namespace