_OutlookBarShortcuts.Add Method

Adds a new shortcut to a group in the Shortcuts pane.

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

Syntax

'Declaration
<DispIdAttribute()> _
Function Add ( _
    Target As Object, _
    Name As String, _
    Index As Object _
) As OutlookBarShortcut
'Usage
Dim instance As _OutlookBarShortcuts
Dim Target As Object
Dim Name As String
Dim Index As Object
Dim returnValue As OutlookBarShortcut

returnValue = instance.Add(Target, Name, _
    Index)
[DispIdAttribute()]
OutlookBarShortcut Add(
    Object Target,
    string Name,
    Object Index
)

Parameters

  • Target
    Type: System.Object

    The target of the shortcut being created.

  • Name
    Type: System.String

    The name of the shortcut being created.

  • Index
    Type: System.Object

    The position at which the new shortcut will be inserted in the Shortcuts pane group. Position one is at the top of the group.The Target type depends on the shortcut type. If the type is Folder, the shortcut represents a Microsoft Outlook folder. If the type is a String (string in C#), the shortcut represents a file-system path or a URL.

Return Value

Type: Microsoft.Office.Interop.Outlook.OutlookBarShortcut
An OutlookBarShortcut object that represents the new shortcut.

See Also

Reference

_OutlookBarShortcuts Interface

_OutlookBarShortcuts Members

Microsoft.Office.Interop.Outlook Namespace