Partager via


FolderType.UnreadCount Property

The UnreadCount property gets the count of unread items within a given folder. This property is read-only.

Namespace: ExchangeWebServices
Assembly: EWS (in ews.dll)

Syntax

'Declaration
Public Property UnreadCount As Integer
public int UnreadCount { get; set; }
public:
property int UnreadCount {
    int get ();
    void set (int value);
}
/** @property */
public int get_UnreadCount ()

/** @property */
public void set_UnreadCount (int value)
public function get UnreadCount () : int

public function set UnreadCount (value : int)

Property Value

The UnreadCount property returns an integer that represents the count of unread items in a folder.

Remarks

You must set the UnreadCountSpecified property to true so that the UnreadCount property is serialized into the SOAP request.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows 98, Windows 2000, Windows 2000 Server, Windows CE, Windows Longhorn, Windows 98 Second Edition, Pocket PC, Smart Phone, Windows Server 2003, Windows XP Professional with Service Pack 2 (SP2)