Share via


_SelectNamesDialog.ShowOnlyInitialAddressList Property

Returns or sets a Boolean (bool in C#) that determines if the AddressList represented by _SelectNamesDialog.InitialAddressList is the only AddressList available in the drop-down list for Address Book in the Select Names dialog box. Read/write.

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

Syntax

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

value = instance.ShowOnlyInitialAddressList

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

Property Value

Type: System.Boolean

Remarks

The default value of this property is False, meaning that all address lists are displayed. To restrict the drop-down list for Address Book to the one indicated by InitialAddressList, set ShowOnlyInitialAddressList to True.

If you do not set the InitialAddressList property and then set ShowOnlyInitialAddressList to True, then the AddressList with AddressList.IsInitialAddressList equal to True will be the only address list available in the drop-down list for Address Book.

See Also

Reference

_SelectNamesDialog Interface

_SelectNamesDialog Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Get Members of an Exchange Distribution List