MapiDistributionList.GetUnderlyingMessage

MapiDistributionList.GetUnderlyingMessage method

Retrieves the underlying MapiMessage object.

public MapiMessage GetUnderlyingMessage()

Return Value

The MapiMessage object.

Examples

Retrieves the underlying MAPI message from a MapiDistributionList object and prints out its message class.

[C#]

// Retrieve the underlying MAPI message from the MapiDistributionList object
MapiMessage msg = mapiDistributionList.GetUnderlyingMessage();
   
// Print out the message class of the MAPI message
// Will output "IPM.DistList"
Console.WriteLine(msg.MessageClass);

[Visual Basic]

' Retrieve the underlying MAPI message from the MapiDistributionList object
Dim msg As MapiMessage = mapiDistributionList.GetUnderlyingMessage()

' Print out the message class of the MAPI message
' Will output "IPM.DistList"
Console.WriteLine(msg.MessageClass)

See Also