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
- DatagridviewDisplayedBandsData.cs
- SharedPerformanceCounter.cs
- ToolTipAutomationPeer.cs
- SkinBuilder.cs
- CodeAttributeArgument.cs
- SettingsProviderCollection.cs
- XmlCollation.cs
- ConstructorNeedsTagAttribute.cs
- IdentityHolder.cs
- UInt64.cs
- AbandonedMutexException.cs
- XhtmlConformanceSection.cs
- Comparer.cs
- AppDomainUnloadedException.cs
- Privilege.cs
- ArgIterator.cs
- PackageRelationshipCollection.cs
- XmlRawWriter.cs
- XamlStyleSerializer.cs
- DataGridViewCellMouseEventArgs.cs
- BufferedGraphics.cs
- BitmapFrameEncode.cs
- SequenceNumber.cs
- NativeMethods.cs
- StaticFileHandler.cs
- IDispatchConstantAttribute.cs
- MimeObjectFactory.cs
- WSUtilitySpecificationVersion.cs
- ListBoxItemWrapperAutomationPeer.cs
- XamlLoadErrorInfo.cs
- LineServices.cs
- UserMapPath.cs
- PerformanceCounterLib.cs
- Pair.cs
- MessagePartProtectionMode.cs
- AutoFocusStyle.xaml.cs
- AspNetHostingPermission.cs
- Int32CollectionConverter.cs
- AutomationProperty.cs
- PointAnimationUsingPath.cs
- ProtocolsConfigurationEntry.cs
- CommandValueSerializer.cs
- XmlAtomicValue.cs
- MonitorWrapper.cs
- AmbientLight.cs
- TextDecorationUnitValidation.cs
- TypeElementCollection.cs
- ListenerChannelContext.cs
- unitconverter.cs
- Rule.cs
- RectangleF.cs
- ApplicationInfo.cs
- ClientSettings.cs
- ColumnMap.cs
- TimeSpanOrInfiniteValidator.cs
- SpinLock.cs
- DbConnectionPoolIdentity.cs
- NotificationContext.cs
- Converter.cs
- EntityDataSourceDesignerHelper.cs
- PathSegmentCollection.cs
- OverrideMode.cs
- SafeNativeMethodsOther.cs
- UIElementIsland.cs
- ListControl.cs
- UndirectedGraph.cs
- SqlDependencyUtils.cs
- MemoryRecordBuffer.cs
- BitmapEffectrendercontext.cs
- UshortList2.cs
- ToolStripContainer.cs
- ProcessHost.cs
- DataGridCaption.cs
- RewritingPass.cs
- TypeHelpers.cs
- Config.cs
- FloaterBaseParagraph.cs
- PropertyMetadata.cs
- CapabilitiesUse.cs
- OperandQuery.cs
- WebPartDescriptionCollection.cs
- DoubleAnimationUsingPath.cs
- COMException.cs
- TextContainerChangeEventArgs.cs
- BackStopAuthenticationModule.cs
- Base64Decoder.cs
- Object.cs
- XmlNamespaceDeclarationsAttribute.cs
- ElementHostAutomationPeer.cs
- LogConverter.cs
- EdmError.cs
- KnowledgeBase.cs
- IsolatedStorageException.cs
- MobileControl.cs
- RoleManagerEventArgs.cs
- TextRangeEditLists.cs
- CreateUserWizard.cs
- DbConnectionOptions.cs
- PrintPageEvent.cs
- ProgressBar.cs