Share via


_SelectNamesDialog.AllowMultipleSelection Property

Returns or sets a Boolean (bool in C#) that determines whether more than one address entry can be selected at a time in the Select Names dialog. Read/write.

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

Syntax

'Declaration
<DispIdAttribute()> _
Property AllowMultipleSelection As Boolean
    Get
    Set
'Usage
Dim instance As _SelectNamesDialog
Dim value As Boolean

value = instance.AllowMultipleSelection

instance.AllowMultipleSelection = value
[DispIdAttribute()]
bool AllowMultipleSelection { get; set; }

Property Value

Type: System.Boolean

Remarks

The default value of AllowMultipleSelection is True. If AllowMultipleSelection is set to True, the user can select multiple recipients by using the CTRL or SHIFT key. If AllowMultipleSelection is set to False, multiple selection is disabled.

Setting AllowMultipleSelection to False does not ensure that only one recipient can be selected. The user can type additional recipients in the edit box or select from the recipient list multiple times. To ensure that only one recipient can be selected in the dialog, set AllowMultipleSelect to False and _SelectNamesDialog.NumberOfRecipientSelectors to olShowNone.

See Also

Reference

_SelectNamesDialog Interface

_SelectNamesDialog Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Get Members of an Exchange Distribution List

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