_ExchangeUser.GetMemberOfList Method

Returns an AddressEntries collection object that contains the AddressEntry objects representing all the Exchange distribution lists to which the user belongs.

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

[DispIdAttribute()]
AddressEntries GetMemberOfList()

Return Value

Type: Microsoft.Office.Interop.Outlook.AddressEntries
An AddressEntries collection object that represents the Exchange distribution lists to which the ExchangeUser belongs. Returns an AddressEntries collection object with a count of zero (0) if the ExchangeUser is not a member of any Exchange distribution list.

GetMemberOfList is an expensive operation in terms of performance if there is a slow connection to Exchange Server.

Show: