quotainfo.cs

来自「ASP开发网站的 关于网站的设计和说明 还有SQL的程序 数据库」· CS 代码 · 共 96 行

CS
96
字号
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 + =
减小字号Ctrl + -
显示快捷键?