FolderQuota Class
Represents a resource usage and quota indicator for the entire account or a single folder of this account.
Inheritance Hierarchy
SystemObject
  MailBee.ImapMailFolderQuota

Namespace: MailBee.ImapMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public class FolderQuota

The FolderQuota type exposes the following members.

Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyCurrentMessageCount
Gets the number of messages currently existing in the account or folder the quota applies to.
Public propertyCurrentStorageSize
Gets the size (in bytes) of the currently used space in the account or folder the quota applies to.
Public propertyMaxMessageCount
Gets the maximum message number limit for the account or folder the quota applies to.
Public propertyMaxStorageSize
Gets the storage limit (in bytes) for the account or folder the quota applies to.
Public propertyQuotaName
Gets the name of the quota.
Top
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(String) 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(String) method passing "QUOTA" as name parameter value. See GetAccountQuota topic for the sample code.

Note 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.
See Also