MailBee.NET Objects 7.1

FolderQuota Class

Represents a resource usage and quota indicator for the entire account or a single folder of this account.

For a list of all members of this type, see FolderQuota Members.

System.Object
   MailBee.ImapMail.FolderQuota

public class FolderQuota

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

Quotas provide the convenient way of determining the maximum and used size of account/folder storage. To obtain quotas, the developer can use GetAccountQuota or GetFolderQuota methods.

However, the IMAP4 server must support QUOTA capability in order to take advantage of quotas. The developer may check if the server supports QUOTA using GetExtension method passing "QUOTA" as name parameter value. See GetAccountQuota topic for the sample code.

Note   Even if the servers supports QUOTA capability, there is no guarantee all the properties of FolderQuota object will be set. This is not error, it just means the account or folder has no restrictions on the particular resource usage. For instance, MaxMessageCount and CurrentMessageCount may return -1 which means the mail server does not care about number of messages in the account. Also, QuotaName can return a null reference (Nothing in Visual Basic) if there is no quota set for this particular account or folder.

Requirements

Namespace: MailBee.ImapMail

Assembly: MailBee.NET (in MailBee.NET.dll)

See Also

FolderQuota Members | MailBee.ImapMail Namespace | GetAccountQuota | GetFolderQuota | GetExtension