“System.STAThreadAttribute”和“System.MTAThreadAttribute”不能同时应用于“|1”'System.STAThreadAttribute' and 'System.MTAThreadAttribute' cannot both be applied to '|1'

System.STAThreadAttributeSystem.MTAThreadAttribute 特性互相排斥。The System.STAThreadAttribute and System.MTAThreadAttribute attributes are mutually exclusive.

错误 ID: BC31513Error ID: BC31513

更正此错误To correct this error

  1. 应用 System.MTAThreadAttributeSystem.STAThreadAttribute两者之一,而非同时应用。Apply either System.MTAThreadAttribute or System.STAThreadAttribute, but not both.

请参阅See also