我有它运行特别根据给定的时间于该应用程序,我如何传递参数通过的App.config的应用程序,如何用c#Concat的在日期时间一时间的小时和分钟
例:我的服务应该每天运行9个时钟
datetime Runtime = datetime.today.Addhours(9);
上述生产线将帮助服务,专门在那个时候,现在我需要设置我的服务由9:30运行,我如何将信息传递给运行。
我曾尝试以下方式,它不被接受
ex 1) datetime Runtime = datetime.today.Addhours(9) + datetime.today.Addminutes(30);
ex 2) datetime Runtime = datetime.today.Addhours(9);
Runtime = datetime.today.Addminutes(30);
明白了回答谢谢大家,日期时间运行= datetime.today.Addhours(9).Addminutes(30); – user1494292
我很高兴你有一个可以帮助你的答案,但是在将来请发布实际的代码 - 你已经阻止的代码不会编译为一些字符,当它们应该是大写时小写。 –
@JonSkeet指出,我会做同样的,非常感谢您的建议,我会按照你的话 – user1494292