AddressEntry.GetExchangeDistributionList Method

Returns an ExchangeDistributionList object that represents the AddressEntry if the AddressEntry belongs to an Exchange AddressList object such as the Global Address List (GAL) and corresponds to an Exchange distribution list.

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

Syntax

'Declaration
<DispIdAttribute()> _
Function GetExchangeDistributionList As ExchangeDistributionList
'Usage
Dim instance As AddressEntry
Dim returnValue As ExchangeDistributionList

returnValue = instance.GetExchangeDistributionList()
[DispIdAttribute()]
ExchangeDistributionList GetExchangeDistributionList()

Return Value

Type: Microsoft.Office.Interop.Outlook.ExchangeDistributionList
An ExchangeDistributionList object that represents the AddressEntry. Returns Nothing (a null reference (Nothing in Visual Basic) in C#) if the AddressEntry object does not correspond to an Exchange distribution list.

Remarks

You have to be connected to the Exchange server to use this method.

See Also

Reference

AddressEntry Interface

AddressEntry Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Enumerate the Entries in the Global Address List

How to: Get Members of an Exchange Distribution List