摘要:
https://github.com/Smoothfu/CSharp/tree/SecuritySafeCriticalpublicvoidSetApartmentStateApartmentStatestatesetstheapartmentstateofathreadbeforeitisstar 阅读全文
posted @ 2019-05-19 23:20
FredGrit
阅读(230)
评论(0)
推荐(0)
摘要:
System.Threading.ThreadStateException: 'Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that you 阅读全文
posted @ 2019-05-19 23:17
FredGrit
阅读(302)
评论(0)
推荐(0)
摘要:
static void ADO() { string connString = ConfigurationManager.ConnectionStrings["connString"].ToString(); using (SqlConnection conn = new SqlConnection(connStrin... 阅读全文
posted @ 2019-05-19 21:54
FredGrit
阅读(150)
评论(0)
推荐(0)

浙公网安备 33010602011771号