| Visual Basic (Declaration) | |
|---|---|
Public ReadOnly Property FirstUnseen As Integer | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As Mailbox Dim value As Integer value = instance.FirstUnseen | |
| C# | |
|---|---|
public int FirstUnseen {get;} | |
| Managed Extensions for C++ | |
|---|---|
public: __property int get_FirstUnseen(); | |
Property Value
The ID of the first unseen message.The Mailbox.FirstUnseen property returns the ID (accessible via the ImapMessage.Id property of the ImapMessage object) of the first unseen message in the inbox.
If you wish to access this message directly simply convert the 1-based server collection to the 0-based messages collection by subtracting 1, i.e.
// Access the first unseen message (be sure to check that this isn't 0 first) Mailbox.Messages[Mailbox.FirstUnseen - 1];
If no message is unseen, this property will return 0.
Target Platforms: Microsoft .NET Framework 2.0
Copy Code