共用方式為


'System.STAThreadAttribute' 和 'System.MTAThreadAttribute' 無法同時套用至同一個方法

更新:2007 年 11 月

System.STAThreadAttribute 和 System.MTAThreadAttribute 屬性 (Attribute) 是互斥的選項。

錯誤 ID:BC31512

若要更正這個錯誤

  • 請套用 System.MTAThreadAttribute 或 System.STAThreadAttribute,但是不能同時套用兩者。

請參閱

參考

STAThreadAttribute

MTAThreadAttribute

其他資源

Visual Basic 中的屬性