コード例 #1
0
        private static int GetMaxSpaceAvailable()
        {
            var currentSecurityLevel = SecurityLevel.CurrentSecurityLevel();

            switch (currentSecurityLevel)
            {
            case eSecurityLevel.Free:
                return(1000);

            case eSecurityLevel.Pro:
                return(2000);

            case eSecurityLevel.Enterprise:
                return(3000);
            }

            throw new Exception("Cannot get licence for user");
        }