執行階段設定結構描述Run-time settings schema

Common language runtime 會使用執行時間設定來設定以 .NET Framework 為目標的應用程式。Run-time settings are used by the common language runtime to configure applications that target the .NET Framework.

<runtime>區段及其父元素和子項目The <runtime> section and its parent and child elements


依字母順序排列的 <runtime> 元素清單Alphabetical list of <runtime> elements

項目Element 描述Description
<add> 將具名快取新增到記憶體快取的 namedCaches 集合。Adds a named cache to the namedCaches collection for a memory cache.
<alwaysFlowImpersonationPolicy> 指定 Windows 識別一律流經非同步點,而不論模擬的執行方式為何。Specifies that the Windows identity always flows across asynchronous points, regardless of how impersonation was performed.
<AppContextSwitchOverrides> 定義一或多個由 AppContext 類別所使用的參數,以提供新功能的退出機制。Defines one or more switches used by the AppContext class to provide an opt-out mechanism for new functionality.
<appDomainManagerAssembly> 針對處理序中的預設應用程式網域,指定提供應用程式網域管理員的組件。Specifies the assembly that provides the application domain manager for the default application domain in the process.
<appDomainManagerType> 針對預設應用程式網域,指定做為應用程式網域管理員的類型。Specifies the type that serves as the application domain manager for the default application domain.
<appDomainResourceMonitoring> 針對處理序存留期間,指示執行階段收集處理序中所有應用程式網域的統計資料。Instructs the runtime to collect statistics on all application domains in the process for the life of the process.
<assemblyBinding> 包含有關組件版本重新導向和組件位置的資訊。Contains information about assembly version redirection and the locations of assemblies.
<assemblyIdentity> 包含組件的識別資訊。Contains identifying information about an assembly.
<bindingRedirect> 將一個組件版本重新導向至另一個版本。Redirects one assembly version to another.
<bypassTrustedAppStrongNames> 指定是否應略過信任組件的強式名稱驗證。Specifies whether strong name verification for trusted assemblies should be bypassed.
<clear> 清除記憶體快取的 namedCaches 集合。Clears the namedCaches collection for a memory cache.
<codeBase> 指定執行階段尋找組件的位置。Specifies where the runtime can find an assembly.
<CompatSortNLSVersion> 指定執行階段在執行字串比較時,應使用舊版排序行為Specifies that the runtime should use legacy sorting behavior when performing string comparisons
<dependentAssembly> 封裝每一個組件的繫結原則和組件位置。Encapsulates binding policy and assembly location for each assembly.
<developmentMode> 指定執行階段是否要在 DEVPATH 環境變數所指定的目錄中搜尋組件。Specifies whether the runtime searches for assemblies in directories specified by the DEVPATH environment variable.
<disableCachingBindingFailures> 指定是否停用系結失敗的快取(這是 .NET Framework 2.0 中的預設行為)。Specifies whether the caching of binding failures, which is the default behavior in the .NET Framework 2.0, is disabled.
<disableCommitThreadStack> 指定啟動執行緒時是否認可整個執行緒堆疊。Specifies whether the full thread stack is committed when a thread starts.
<disableFusionUpdatesFromADManager> 指定是否停用預設行為 (亦即允許執行階段主機覆寫應用程式網域的組態設定)。Specifies whether the default behavior, which is to allow the runtime host to override configuration settings for an application domain, is disabled.
<EnableAmPmParseAdjustment> 針對只包含日期、月份、小時和上午/下午指示項的日期字串,決定日期及時間剖析方法是否使用一組調整過的規則來剖析。Determines whether date and time parsing methods use an adjusted set of rules to parse date strings that contain only a day, month, hour, and AM/PM designator.
<enforceFIPSPolicy> 指定是否強制執行電腦設定需求,以便讓密碼編譯演算法符合美國聯邦資訊處理標準 (FIPS) 的規範。Specifies whether to enforce a computer configuration requirement that cryptographic algorithms must comply with the Federal Information Processing Standards (FIPS).
<etwEnable> 指定是否為通用語言執行平台事件啟用 Windows 事件追蹤 (ETW)。Specifies whether to enable event tracing for Windows (ETW) for common language runtime events.
<forcePerformanceCounterUniqueSharedMemoryReads> 指定 PerfCounter.dll 是否在 .NET Framework 1.1 版的應用程式中使用 CategoryOptions 登錄設定,以決定要從類別特定共用記憶體或從全域記憶體載入效能計數器資料。Specifies whether PerfCounter.dll uses the CategoryOptions registry setting in a .NET Framework version 1.1 application to determine whether to load performance counter data from category-specific shared memory or global memory.
<gcAllowVeryLargeObjects> 在 64 位元平台上,啟用總大小大於 2 GB 的陣列。On 64-bit platforms, enables arrays that are greater than 2 gigabytes (GB) in total size.
<gcConcurrent> 指定執行階段是否同時執行記憶體回收。Specifies whether the runtime runs garbage collection concurrently.
<GCCpuGroup> 指定記憶體回收是否支援多個 CPU 群組。Specifies whether garbage collection supports multiple CPU groups.
<GCHeapAffinitizeMask> 定義 GC 堆積和個別處理器之間的親和性。Defines the affinity between GC heaps and individual processors.
<GCHeapCount> 指定要用於伺服器垃圾收集的堆積/執行緒數目。Specifies the number of heaps/threads to use for server garbage collection.
<GCLOHThreshold> 指定讓物件移至大型物件堆積 (LOH) 的閾值大小。Specifies the threshold size that causes objects to go on the large object heap (LOH).
<GCNoAffinitize> 指定是否要將相似化為具有 Cpu 的伺服器 GC 執行緒。Specifies whether or not to affinitize server GC threads with CPUs.
<gcServer> 指定 Common Language Runtime 是否執行伺服器記憶體回收。Specifies whether the common language runtime runs server garbage collection.
<generatePublisherEvidence> 指定執行階段是否使用程式碼存取安全性 (CAS) 發行者原則。Specifies whether the runtime uses code access security (CAS) publisher policy.
<legacyCorruptedStateExceptionsPolicy> 指定執行階段是否允許 Managed 程式碼攔截存取違規和其他損毀狀態例外狀況。Specifies whether the runtime allows managed code to catch access violations and other corrupted state exceptions.
<legacyImpersonationPolicy> 指定 Windows 識別不會流經非同步點,而不論目前執行緒上執行內容的流程設定為何。Specifies that the Windows identity does not flow across asynchronous points, regardless of the flow settings for the execution context on the current thread.
<loadfromRemoteSources> 指定是否以完全信任的方式載入來自遠端來源的組件。Specifies whether assemblies from remote sources are loaded as full trust.
<memoryCache> 定義項目,這個項目會用來設定以 MemoryCache 類別為基礎的快取。Defines an element that is used to configure a cache that is based on the MemoryCache class.
<namedCaches> 包含 namedCache 執行個體的組態設定集合。Contains a collection of configuration settings for the namedCache instance.
<NetFx40_LegacySecurityPolicy> 指定執行階段是否使用舊版程式碼存取安全性 (CAS) 原則。Specifies whether the runtime uses legacy code access security (CAS) policy.
<NetFx40_PInvokeStackResilience> 指定執行階段是否會在執行階段自動修復不正確的平台叫用宣告,即使這麼做會使 Managed 和 Unmanaged 程式碼之間的轉換變慢。Specifies whether the runtime automatically fixes incorrect platform invoke declarations at run time, at the cost of slower transitions between managed and unmanaged code.
<NetFx45_CultureAwareComparerGetHashCode_LongStrings> 指定執行階段是否使用固定的記憶體數量計算 StringComparer.GetHashCode 方法的雜湊碼。Specifies whether the runtime uses a fixed amount of memory to calculate hash codes for the StringComparer.GetHashCode method.
<PreferComInsteadOfManagedRemoting> 指定執行階段會使用 COM Interop,而不是跨越應用程式網域界限的遠端處理。Specifies that the runtime will use COM interop instead of remoting across application domain boundaries.
<probing> 指定執行階段在載入組件時要搜尋的子目錄。Specifies subdirectories that the runtime searches when loading assemblies.
<publisherPolicy> 指定執行階段是否套用發行者原則。Specifies whether the runtime applies publisher policy.
<qualifyAssembly> 指定應該在使用部分名稱時以動態方式載入的組件的完整名稱。Specifies the full name of the assembly that should be dynamically loaded when a partial name is used.
<relativeBindForResources> 最佳化附屬組件的探查。Optimizes the probe for satellite assemblies.
<remove> 從記憶體快取的 namedCaches 集合移除具名快取項目。Removes a named cache entry from the namedCaches collection for a memory cache.
<runtime> 包含有關組件繫結和記憶體回收行為的資訊。Contains information about assembly binding and the behavior of garbage collection.
<shadowCopyTimeStampVerification> 指定陰影複製是否使用 .NET Framework 4 中引進的預設啟動行為,或還原為舊版 .NET Framework 的啟動行為。Specifies whether shadow copying uses the default startup behavior introduced in the .NET Framework 4, or reverts to the startup behavior of earlier versions of the .NET Framework.
<supportPortability> 指定應用程式可以在兩個不同的 .NET Framework 實作中參考相同的組件,方法是停用將組件視為同等的預設行為 (此預設行為是基於應用程式可攜性的考量)。Specifies that an application can reference the same assembly in two different implementations of the .NET Framework, by disabling the default behavior that treats the assemblies as equivalent for application portability purposes.
<system.runtime.caching> 提供預設記憶體內部物件快取的組態資訊。Provides configuration information for the default in-memory object cache.
<Thread_UseAllCpuGroups> 指定執行階段是否會將 Managed 執行緒分散到所有 CPU 群組。Specifies whether the runtime distributes managed threads across all CPU groups.
<ThrowUnobservedTaskExceptions> 指定未處理的工作例外狀況是否應終止執行中的處理序。Specifies whether unhandled task exceptions should terminate a running process.
<TimeSpan_LegacyFormatMode> 指定執行階段是否針對 TimeSpan 值使用舊版格式。Specifies whether the runtime uses legacy formatting for TimeSpan values.
<useLegacyJit> 決定通用語言執行平台是否針對 Just-In-Time 編譯使用舊版 64 位元 JIT 編譯器。Determines whether the common language runtime uses the legacy 64-bit JIT compiler for just-in-time compilation.
<UseRandomizedStringHashAlgorithm> 指定執行階段是否依照應用程式網域來計算字串的雜湊碼。Specifies whether the runtime calculates hash codes for strings on a per application domain basis.
<UseSmallInternalThreadStacks> 要求執行階段在建立內部使用的特定執行緒時,使用明確的堆疊大小,而不是預設的堆疊大小。Requests that the runtime use explicit stack sizes when it creates certain threads that it uses internally, instead of the default stack size.

請參閱See also