IGCHost::SetGCStartupLimits Method
Sets the segment size and the maximum size for generation 0.
Important
Starting with .NET Framework 4.5, you can set segment size and maximum generation 0 size to values greater than DWORD
by using the IGCHost2::SetGCStartupLimitsEx method.
Syntax
HRESULT SetGCStartupLimits (
[in] DWORD SegmentSize,
[in] DWORD MaxGen0Size
);
Parameters
SegmentSize
[in] The size of the segment used by the garbage collection system.
MaxGen0Size
[in] The maximum size for generation 0.
Remarks
The SetGCStartupLimits
method may be called only once. These values cannot be changed later.
Requirements
Platforms: See System Requirements.
Header: GCHost.idl, GCHost.h
Library: Included as a resource in MSCorEE.dll
.NET Framework Versions: Available since 2.0
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for