次の方法で共有


SelectNamesDialog Interface

Displays the Select Names dialog box for the user to select entries from one or more address lists, and returns the selected entries in the collection object specified by the property _SelectNamesDialog.Recipients.

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

Syntax

'Declaration
<CoClassAttribute(GetType(SelectNamesDialogClass))> _
<GuidAttribute("000630C8-0000-0000-C000-000000000046")> _
Public Interface SelectNamesDialog _
    Inherits _SelectNamesDialog
'Usage
Dim instance As SelectNamesDialog
[CoClassAttribute(typeof(SelectNamesDialogClass))]
[GuidAttribute("000630C8-0000-0000-C000-000000000046")]
public interface SelectNamesDialog : _SelectNamesDialog

Remarks

This is a .NET interface derived from a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this derived interface to access all method, property, and event members of the COM object. However, if a method or event you want to use shares the same name under the same COM object, cast to the corresponding primary interface to call the method, and cast to the latest events interface to connect to the event. Refer to this topic for information about the COM object. For information about the method and property members of the COM object, see _SelectNamesDialog.

You can instantiate an instance of the SelectNamesDialog object by calling _NameSpace.GetSelectNamesDialog.

The dialog box displayed by _SelectNamesDialog.Display is similar to the Select Names dialog box in the Outlook user interface. It observes the size and position settings of the built-in Select Names dialog box. However, its default state does not show Message Recipients above the To, Cc, and Bcc edit boxes. For more information on using the SelectNamesDialog object to display the Select Names dialog box, see Display Names from the Address Book.

See Also

Reference

SelectNamesDialog Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Display in the Select Names Dialog Box the Address Book Corresponding to a Contacts Folder

How to: Get the Global Address List or a Set of Address Lists for a Store

How to: Display the Select Names Dialog Box to Resolve Recipients

How to: Use the Select Names Dialog Box to Obtain and Assign Recipients to an Appointment