GC.GetConfigurationVariables 方法

定义

获取垃圾回收器使用的配置。

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 数。

适用于