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
- Viewport3DAutomationPeer.cs
- Timer.cs
- HtmlElementErrorEventArgs.cs
- TextParagraphView.cs
- XmlDataImplementation.cs
- WindowsFormsEditorServiceHelper.cs
- EntityContainerAssociationSet.cs
- LinkedResource.cs
- UidPropertyAttribute.cs
- MatrixStack.cs
- ProxyWebPart.cs
- RawAppCommandInputReport.cs
- XmlSchemaInferenceException.cs
- ListView.cs
- IndexedGlyphRun.cs
- RectAnimationUsingKeyFrames.cs
- HebrewCalendar.cs
- DisposableCollectionWrapper.cs
- AsyncResult.cs
- HyperLinkColumn.cs
- validation.cs
- SqlFacetAttribute.cs
- PinProtectionHelper.cs
- DataGridCheckBoxColumn.cs
- ComEventsSink.cs
- VerificationException.cs
- PropertyMetadata.cs
- MediaElement.cs
- Section.cs
- OdbcConnectionOpen.cs
- BooleanProjectedSlot.cs
- DataRowCollection.cs
- NotificationContext.cs
- SqlAggregateChecker.cs
- ThreadNeutralSemaphore.cs
- TransformPattern.cs
- WebConfigurationFileMap.cs
- Html32TextWriter.cs
- ObjectItemLoadingSessionData.cs
- DataServiceKeyAttribute.cs
- BulletChrome.cs
- ReachPrintTicketSerializer.cs
- OleDbRowUpdatedEvent.cs
- CodeCompiler.cs
- CalendarDesigner.cs
- EntityContainer.cs
- XmlAttributes.cs
- XmlChildEnumerator.cs
- Variant.cs
- WebPartRestoreVerb.cs
- InstalledFontCollection.cs
- AuthenticationModuleElement.cs
- ModelProperty.cs
- SoapAttributes.cs
- Animatable.cs
- InitializerFacet.cs
- MaterializeFromAtom.cs
- InteropBitmapSource.cs
- TextContainerHelper.cs
- BuildTopDownAttribute.cs
- ClientSettingsProvider.cs
- ServiceDurableInstance.cs
- ByteKeyFrameCollection.cs
- ThreadExceptionEvent.cs
- DesignerLoader.cs
- DataGrid.cs
- EmptyCollection.cs
- SQLBoolean.cs
- FilterException.cs
- DeviceContext.cs
- Debugger.cs
- LocatorPart.cs
- Int32CollectionConverter.cs
- SchemaElementDecl.cs
- DetailsViewInsertedEventArgs.cs
- TypeConverters.cs
- WebPartMenuStyle.cs
- DragEvent.cs
- UnsafeNativeMethodsTablet.cs
- _ProxyChain.cs
- PersonalizationProviderHelper.cs
- HtmlAnchor.cs
- IgnorePropertiesAttribute.cs
- WebMessageFormatHelper.cs
- AppDomainShutdownMonitor.cs
- DocumentPageViewAutomationPeer.cs
- ProcessHostServerConfig.cs
- SortedList.cs
- DependencyProperty.cs
- UnionCqlBlock.cs
- DragStartedEventArgs.cs
- WebHeaderCollection.cs
- PerformanceCounterCategory.cs
- WebEventTraceProvider.cs
- OperationCanceledException.cs
- VisualTarget.cs
- AssemblyInfo.cs
- HttpModuleAction.cs
- Point3DIndependentAnimationStorage.cs
- RichTextBoxDesigner.cs