Partager via


_DistListItem.MemberCount Property

Returns an Integer (int in C#) value indicating the number of members in a distribution list. Read-only.

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

Syntax

'Declaration
<DispIdAttribute()> _
ReadOnly Property MemberCount As Integer
    Get
'Usage
Dim instance As _DistListItem
Dim value As Integer

value = instance.MemberCount
[DispIdAttribute()]
int MemberCount { get; }

Property Value

Type: System.Int32

Remarks

The value returned represents all members of the distribution list, including member distribution lists. Each member distribution list is counted as a single member. That is, MemberCount is not an aggregate sum of the recipients in the distribution list plus recipients in member distribution lists. For example, if a distribution list contains 10 recipients plus one distribution list containing 15 recipients, MemberCount returns 11.

See Also

Reference

_DistListItem Interface

_DistListItem Members

Microsoft.Office.Interop.Outlook Namespace