Share via


Mapi.readMail Method

Retrieves a message from the message store.

Syntax

public MapiMessage readMail(str messageID, [int flags])

Run On

Called

Parameters

  • messageID
    Type: str
    The unique ID of the message to retrieve. The ID can be found by using the findNext method.
  • flags
    Type: int
    A list of flags; optional.
    The valid flags are as follows:

Return Value

Type: MapiMessage Class
The MapiMessage object that is retrieved or nullNothingnullptrunita null reference (Nothing in Visual Basic).

See Also

Mapi Class

MapiMessage Class

Mapi.findNext Method