MapiDistributionList

MapiDistributionList class

Inherits: Aspose::Email::Mapi::MapiMessageItemBase

Represents a MAPI distribution list item.

This class serves as a wrapper for MapiMessage to simplify the process of handling distribution list information from MAPI properties. It provides a more intuitive interface for accessing and manipulating distribution list data within the MAPI message.

The following example demonstrates how to get a MapiDistributionList object from a MapiMessage .

var msg = MapiMessage.Load("distributionList.msg");
 
// Check if the loaded message is a supported distribution list type
if (msg.SupportedType == MapiItemType.DistList)
{
 // Convert the MAPI message to a MapiDistributionList object
    var mapiDistributionList = (MapiDistributionList)msg.ToMapiMessageItem();
 
 // Display some distribution list info
    Console.WriteLine(mapiDistributionList.DisplayName);
    Console.WriteLine(mapiDistributionList.Members.Count);
}
Dim msg = MapiMessage.Load("distributionList.msg")
 
' Check if the loaded message is a supported distribution list type
If msg.SupportedType = MapiItemType.DistList Then
    ' Convert the MAPI message to a MapiDistributionList object
    Dim mapiDistributionList = DirectCast(msg.ToMapiMessageItem(), MapiDistributionList)
 
 ' Display some distribution list info
    Console.WriteLine(mapiDistributionList.DisplayName)
    Console.WriteLine(mapiDistributionList.Members.Count)
End If

Constructors

NameDescription
MapiDistributionList (3 overloads)Initializes a new instance of the MapiDistributionList class.

Methods

NameDescription
ConvertToMapiMessageConverts contact object to mapi message
FromVCF (2 overloads)Loads MapiDistributionList from VCF stream.
get_DisplayNameGets the user-visible name of the personal distribution list.
get_MembersGets the list of the members of the personal distribution list.
GetUnderlyingMessageRetrieves the underlying MapiMessage object.
Save (4 overloads)Saves the specified stream.
set_DisplayNameSets the user-visible name of the personal distribution list.