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