📄 quotainfo.cs
字号:
namespace ASPNET.StarterKit.Communities {
using System;
//*********************************************************************
//
// QuotaInfo Class
//
// Represents community and user database quota information.
//
//*********************************************************************
public class QuotaInfo {
int _communityQuota;
int _communityQuotaUsed;
int _userQuota;
int _userQuotaUsed;
//*********************************************************************
//
// QuotaInfo Constructor
//
// Initializes the QuotaInfo class.
//
//*********************************************************************
public QuotaInfo(int communityQuota, int communityQuotaUsed, int userQuota, int userQuotaUsed) {
_communityQuota = communityQuota;
_communityQuotaUsed = communityQuotaUsed;
_userQuota = userQuota;
_userQuotaUsed = userQuotaUsed;
}
//*********************************************************************
//
// CommunityQuota Property
//
// The total database disk space that can be used by
// images and downloads for this community.
//
//*********************************************************************
public int CommunityQuota {
get { return _communityQuota * 1024;}
}
//*********************************************************************
//
// CommunityQuotaUsed Property
//
// The current total database disk space used by
// images and downloads for this community.
//
//*********************************************************************
public int CommunityQuotaUsed {
get { return _communityQuotaUsed;}
}
//*********************************************************************
//
// UserQuota Property
//
// The total database disk space that can be used by
// images and downloads for this user.
//
//*********************************************************************
public int UserQuota {
get { return _userQuota * 1024;}
}
//*********************************************************************
//
// UserQuotaUsed Property
//
// The current total database disk space used by
// images and downloads for this user.
//
//*********************************************************************
public int UserQuotaUsed {
get { return _userQuotaUsed;}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -