GC.GetConfigurationVariables 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取垃圾回收器使用的配置。
public:
static System::Collections::Generic::IReadOnlyDictionary<System::String ^, System::Object ^> ^ GetConfigurationVariables();
public static System.Collections.Generic.IReadOnlyDictionary<string,object> GetConfigurationVariables();
static member GetConfigurationVariables : unit -> System.Collections.Generic.IReadOnlyDictionary<string, obj>
Public Shared Function GetConfigurationVariables () As IReadOnlyDictionary(Of String, Object)
返回
一个只读字典,其配置名称和值分别作为字典的键和值。
注解
这些配置的值不一定与用户传递的值相同。 例如,对于 GCHeapCount 配置,如果用户提供的值高于 CPU 数,则所使用的配置是 CPU 数。