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
- SQLBytesStorage.cs
- SessionIDManager.cs
- FormsAuthenticationModule.cs
- XPathNavigator.cs
- ReflectionPermission.cs
- Thread.cs
- WindowsListViewScroll.cs
- UrlPropertyAttribute.cs
- AdapterDictionary.cs
- CultureMapper.cs
- PropertyValueUIItem.cs
- SiteOfOriginContainer.cs
- DesignSurfaceEvent.cs
- XmlDocumentSerializer.cs
- WebPartMenuStyle.cs
- FocusTracker.cs
- GeneralTransform3DTo2D.cs
- DerivedKeySecurityTokenStub.cs
- Thread.cs
- UpdateProgress.cs
- ObjectQueryProvider.cs
- GeneralTransform.cs
- ShutDownListener.cs
- Message.cs
- DataSpaceManager.cs
- DecimalAnimation.cs
- Binding.cs
- EntityModelBuildProvider.cs
- StringCollection.cs
- RepeatBehavior.cs
- DynamicRouteExpression.cs
- MiniParameterInfo.cs
- ModuleBuilderData.cs
- HtmlInputFile.cs
- TraceContextRecord.cs
- DynamicEndpoint.cs
- MsmqMessageProperty.cs
- NavigatorOutput.cs
- TrustLevel.cs
- SchemaSetCompiler.cs
- UMPAttributes.cs
- ActiveXHelper.cs
- WorkflowEventArgs.cs
- Confirm.cs
- UriWriter.cs
- AsyncContentLoadedEventArgs.cs
- OrderedDictionary.cs
- ACL.cs
- FileSecurity.cs
- RC2CryptoServiceProvider.cs
- MouseCaptureWithinProperty.cs
- TypeInfo.cs
- WebResponse.cs
- SectionXmlInfo.cs
- TabRenderer.cs
- NameSpaceEvent.cs
- ResolveNameEventArgs.cs
- EditModeSwitchButton.cs
- KnownBoxes.cs
- EncoderExceptionFallback.cs
- DynamicActivityTypeDescriptor.cs
- RichTextBoxDesigner.cs
- XpsFilter.cs
- ImageListUtils.cs
- SessionIDManager.cs
- EntityConnectionStringBuilder.cs
- ChangeProcessor.cs
- DataGridHelper.cs
- Transform3DCollection.cs
- CodeDomSerializer.cs
- CellParagraph.cs
- EllipseGeometry.cs
- SecurityTokenValidationException.cs
- InfiniteTimeSpanConverter.cs
- COM2AboutBoxPropertyDescriptor.cs
- ButtonBaseAdapter.cs
- WindowsBrush.cs
- XmlUtilWriter.cs
- BlurEffect.cs
- XmlFileEditor.cs
- sortedlist.cs
- CacheVirtualItemsEvent.cs
- ParseChildrenAsPropertiesAttribute.cs
- XmlNode.cs
- PageTheme.cs
- CodeTypeOfExpression.cs
- ExternalFile.cs
- BitmapEffectvisualstate.cs
- HttpPostedFileBase.cs
- FigureParaClient.cs
- ProviderCommandInfoUtils.cs
- PrimitiveXmlSerializers.cs
- SQLString.cs
- _ContextAwareResult.cs
- GenericQueueSurrogate.cs
- ContextMarshalException.cs
- ValidationRule.cs
- TypeElement.cs
- EntityContainerEntitySetDefiningQuery.cs
- CodeIdentifier.cs