Partager via


_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)

Syntax

'Declaration
<DispIdAttribute()> _
Function GetMemberOfList As AddressEntries
'Usage
Dim instance As _ExchangeUser
Dim returnValue As AddressEntries

returnValue = instance.GetMemberOfList()
[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.

Remarks

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

See Also

Reference

_ExchangeUser Interface

_ExchangeUser Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Get Information About All Distribution Lists of Which the Current User is a Member