FolderQuota Class |
Namespace: MailBee.ImapMail
The FolderQuota type exposes the following members.
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
CurrentMessageCount |
Gets the number of messages currently existing in the account or folder the quota applies to.
| |
CurrentStorageSize |
Gets the size (in bytes) of the currently used space in the account or folder the quota applies to.
| |
MaxMessageCount |
Gets the maximum message number limit for the account or folder the quota applies to.
| |
MaxStorageSize |
Gets the storage limit (in bytes) for the account or folder the quota applies to.
| |
QuotaName |
Gets the name of the quota.
|
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 |
---|
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. |