Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Runtime / GcSettings.cs / 2 / GcSettings.cs
namespace System.Runtime { using System; using System.Runtime.CompilerServices; using System.Runtime.ConstrainedExecution; using System.Security.Permissions; // This is the same format as in clr\src\vm\gcpriv.h // make sure you change that one if you change this one! [Serializable] public enum GCLatencyMode { Batch = 0, Interactive = 1, LowLatency = 2 } public static class GCSettings { public static GCLatencyMode LatencyMode { [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] get { return (GCLatencyMode)(GC.nativeGetGCLatencyMode()); } // We don't want to allow this API when hosted. [HostProtection(MayLeakOnAbort = true)] [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] [PermissionSetAttribute(SecurityAction.LinkDemand, Name="FullTrust")] set { if ((value < GCLatencyMode.Batch) || (value > GCLatencyMode.LowLatency)) { throw new ArgumentOutOfRangeException(Environment.GetResourceString("ArgumentOutOfRange_Enum")); } GC.nativeSetGCLatencyMode((int)value); } } public static bool IsServerGC { get { return GC.nativeIsServerGC(); } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BulletedListEventArgs.cs
- Model3DGroup.cs
- SizeLimitedCache.cs
- SafeRegistryHandle.cs
- GridViewRowCollection.cs
- DeviceContext2.cs
- ParallelTimeline.cs
- ProvidePropertyAttribute.cs
- MenuItemStyle.cs
- VoiceChangeEventArgs.cs
- BatchWriter.cs
- MimeMapping.cs
- GuidelineSet.cs
- DrawingImage.cs
- AxHostDesigner.cs
- Point3D.cs
- RangeContentEnumerator.cs
- WebPageTraceListener.cs
- SatelliteContractVersionAttribute.cs
- AxHost.cs
- InstancePersistenceEvent.cs
- AddInToken.cs
- WebServicesSection.cs
- DrawingVisual.cs
- SortExpressionBuilder.cs
- NumberSubstitution.cs
- ButtonChrome.cs
- XmlSchemaAttributeGroup.cs
- EvidenceBase.cs
- XamlToRtfWriter.cs
- LocalizabilityAttribute.cs
- DebugInfo.cs
- ExpressionParser.cs
- Update.cs
- SynchronizationFilter.cs
- ConfigurationStrings.cs
- SqlGenerator.cs
- WebPartZone.cs
- CustomCategoryAttribute.cs
- HashSetDebugView.cs
- ToolStripPanelDesigner.cs
- BooleanStorage.cs
- WebMessageEncodingElement.cs
- TransformerConfigurationWizardBase.cs
- _KerberosClient.cs
- EnvironmentPermission.cs
- OleDbEnumerator.cs
- SspiSafeHandles.cs
- peersecuritysettings.cs
- FastEncoderWindow.cs
- FormViewDeletedEventArgs.cs
- MaterialGroup.cs
- ImageList.cs
- AlignmentYValidation.cs
- X509SecurityTokenParameters.cs
- TextRenderer.cs
- OpCopier.cs
- GradientStop.cs
- ComponentEditorForm.cs
- UserValidatedEventArgs.cs
- XmlSchemaComplexContentRestriction.cs
- CellQuery.cs
- DockPatternIdentifiers.cs
- ActiveDesignSurfaceEvent.cs
- ProfileProvider.cs
- ResourceReferenceKeyNotFoundException.cs
- ComponentResourceKey.cs
- SamlAdvice.cs
- Slider.cs
- PanelStyle.cs
- DataGridViewLinkCell.cs
- SiteMapProvider.cs
- BrushMappingModeValidation.cs
- Int32CAMarshaler.cs
- ReflectionUtil.cs
- SQLByteStorage.cs
- RemotingService.cs
- SoapServerProtocol.cs
- VisualTarget.cs
- DataGridAutoFormatDialog.cs
- SqlCommandAsyncResult.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- DesignConnectionCollection.cs
- InvokeProviderWrapper.cs
- Privilege.cs
- BasicCellRelation.cs
- DocumentOrderComparer.cs
- LicenseException.cs
- FrameworkElement.cs
- DisplayInformation.cs
- ColorConvertedBitmap.cs
- HtmlUtf8RawTextWriter.cs
- HtmlInputControl.cs
- DecoderNLS.cs
- DoubleAnimationUsingKeyFrames.cs
- ProfileSection.cs
- SetterBaseCollection.cs
- EnvelopedSignatureTransform.cs
- DifferencingCollection.cs
- NumericUpDownAcceleration.cs