/// <summary>Returns true if any storage type consumption information is available</summary> public virtual bool IsTypeConsumedAvailable() { if (typeConsumed == null) { return(false); } foreach (StorageType t in StorageType.GetTypesSupportingQuota()) { if (typeConsumed[(int)(t)] > 0) { return(true); } } return(false); }
/// <summary>Returns true if any storage type quota has been set</summary> public virtual bool IsTypeQuotaSet() { if (typeQuota == null) { return(false); } foreach (StorageType t in StorageType.GetTypesSupportingQuota()) { if (typeQuota[(int)(t)] > 0) { return(true); } } return(false); }