Linux平台上.NET Core中线程的ApartmentState是什么意思?

时间:2018-12-05 03:22:19

标签: c# multithreading com

据我了解,.NET中线程的ApartmentState属性是COM东西。当线程由Linux平台上的.NET Core运行时管理时,此属性有任何含义吗?是否可以确保该属性在Linux平台上始终为ApartmentState.Unknown?

1 个答案:

答案 0 :(得分:2)

在Unix上,the implementation of the GetApartmentState method is

public ApartmentState GetApartmentState() => ApartmentState.Unknown;

是的,似乎可以保证是ApartmentState.Unknown