ScheduledTasks st = new ScheduledTasks();
Task task = st.OpenTask("test");
if (task != null)
{
st.DeleteTask("test");
}
task = st.CreateTask("test");
DateTime nextDate = DateTime.Now.AddMinutes(1);
RunOnceTrigger rt = new RunOnceTrigger(nextDate);
task.SetAccountInformation("user","pass");
task.Triggers.Add(rt);
task.ApplicationName = Assembly.GetExecutingAssembly().Location;
task.Save();
task.Close();
在 Save的时候 提示Additional information: 值不在预期的范围内,啥原因??
Task task = st.OpenTask("test");
if (task != null)
{
st.DeleteTask("test");
}
task = st.CreateTask("test");
DateTime nextDate = DateTime.Now.AddMinutes(1);
RunOnceTrigger rt = new RunOnceTrigger(nextDate);
task.SetAccountInformation("user","pass");
task.Triggers.Add(rt);
task.ApplicationName = Assembly.GetExecutingAssembly().Location;
task.Save();
task.Close();
在 Save的时候 提示Additional information: 值不在预期的范围内,啥原因??
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货