PowerTCP Mail for .NET
FirstUnseen Property
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > Mailbox Class : FirstUnseen Property




Gets the ID of the first unseen message in the mailbox.

Syntax

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();
C++/CLI 
public:
property int FirstUnseen {
   int get();
}

Property Value

The ID of the first unseen message.

Remarks

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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.