Partager via


_NavigationGroups.Create Method

Creates and returns a new NavigationGroup object, added to the end of the NavigationGroups collection.

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

Syntax

'Declaration
<DispIdAttribute()> _
Function Create ( _
    GroupDisplayName As String _
) As NavigationGroup
'Usage
Dim instance As _NavigationGroups
Dim GroupDisplayName As String
Dim returnValue As NavigationGroup

returnValue = instance.Create(GroupDisplayName)
[DispIdAttribute()]
NavigationGroup Create(
    string GroupDisplayName
)

Parameters

  • GroupDisplayName
    Type: System.String

    The value of the Name property for the new NavigationGroup object.

Return Value

Type: Microsoft.Office.Interop.Outlook.NavigationGroup
A NavigationGroup object that represents the new navigation group.

Remarks

A NavigationGroups collection can contain multiple NavigationGroup objects with the same Name property values.

An error occurs if an add-in attempts to add more than 50 navigation groups to a NavigationGroups collection, or if an add-in attempts to add a NavigationGroup object to the NavigationGroups collection of a MailModule object.

See Also

Reference

_NavigationGroups Interface

_NavigationGroups Members

Microsoft.Office.Interop.Outlook Namespace