异常后台任务 UWP ('Value does not fall within the expected range.')

Exception in-background task UWP ('Value does not fall within the expected range.')

System.ArgumentException: 'Value does not fall within the expected range.' 当我将时间触发器编号从 15 更改为其他数字时出现此异常。我知道为什么。 当时间触发器为 15 时,我没有得到异常。为什么?提前致谢..这是代码..

var builder = new BackgroundTaskBuilder();
            builder.Name = "My Background Trigger";
            builder.SetTrigger(new TimeTrigger(5, false));
            // Do not set builder.TaskEntryPoint for in-process background tasks
            // Here we register the task and work will start based on the time trigger.
            BackgroundTaskRegistration task = builder.Register();

TimeTrigger Class has a minimum value which is 15 minutes. You could not set a time interval that less than 15 minutes to the TimeTrigger. This is mentioned here: TimeTrigger.FreshnessTime Property