_SelectNamesDialog.Display method

Displays the Select Names dialog box.

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

[DispIdAttribute()]
bool Display()

Return value

Type: System.Boolean
A Boolean value (bool in C#) that is True if the user has clicked OK, and False if the user has clicked Cancel or the close icon.

When displaying the Select Names dialog box, Display uses the previous location and size (indicated by the top, left, width, and height) of the dialog box.

The Select Names dialog box is modal, meaning that code execution will halt until the user clicks OK, Cancel, or the close icon.

You should detect for error conditions that include insufficient memory or another message or dialog box is open.

Show: