Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / GcSettings.cs / 1305376 / GcSettings.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== namespace System.Runtime { using System; using System.Runtime.CompilerServices; using System.Runtime.ConstrainedExecution; using System.Security.Permissions; using System.Diagnostics.Contracts; // 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 { [System.Security.SecuritySafeCritical] // auto-generated [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] get { return (GCLatencyMode)(GC.GetGCLatencyMode()); } // We don't want to allow this API when hosted. [System.Security.SecurityCritical] // auto-generated_required [HostProtection(MayLeakOnAbort = true)] [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] set { if ((value < GCLatencyMode.Batch) || (value > GCLatencyMode.LowLatency)) { throw new ArgumentOutOfRangeException(Environment.GetResourceString("ArgumentOutOfRange_Enum")); } Contract.EndContractBlock(); GC.SetGCLatencyMode((int)value); } } public static bool IsServerGC { [System.Security.SecuritySafeCritical] // auto-generated get { return GC.IsServerGC(); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- _RequestCacheProtocol.cs
- ScaleTransform3D.cs
- RelationshipNavigation.cs
- ServiceNotStartedException.cs
- MetafileHeaderWmf.cs
- TypedElement.cs
- ConfigXmlComment.cs
- CodeDelegateCreateExpression.cs
- XPathSelectionIterator.cs
- WebPartVerbsEventArgs.cs
- Knowncolors.cs
- InvokePattern.cs
- GroupQuery.cs
- SqlDuplicator.cs
- XmlNamespaceDeclarationsAttribute.cs
- IsolationInterop.cs
- PlatformCulture.cs
- PostBackOptions.cs
- DateRangeEvent.cs
- HttpPostProtocolImporter.cs
- WindowsEditBoxRange.cs
- RowTypePropertyElement.cs
- LookupNode.cs
- LabelAutomationPeer.cs
- Psha1DerivedKeyGenerator.cs
- ControlBindingsCollection.cs
- ResourcePermissionBaseEntry.cs
- SettingsSavedEventArgs.cs
- HostProtectionException.cs
- ControlPager.cs
- _WinHttpWebProxyDataBuilder.cs
- EditorPartChrome.cs
- WebMessageBodyStyleHelper.cs
- WsdlInspector.cs
- WebPartTracker.cs
- MetadataItem.cs
- JsonQNameDataContract.cs
- ReadOnlyHierarchicalDataSourceView.cs
- VisualTreeHelper.cs
- PlatformCulture.cs
- OletxEnlistment.cs
- Panel.cs
- CompilerErrorCollection.cs
- GradientStopCollection.cs
- _AcceptOverlappedAsyncResult.cs
- MatrixCamera.cs
- SingleAnimationBase.cs
- RootDesignerSerializerAttribute.cs
- PropertyConverter.cs
- OdbcHandle.cs
- WsdlInspector.cs
- VectorValueSerializer.cs
- WebPartMenu.cs
- StsCommunicationException.cs
- OrthographicCamera.cs
- XmlSecureResolver.cs
- UnwrappedTypesXmlSerializerManager.cs
- _ConnectionGroup.cs
- _IPv6Address.cs
- DynamicQueryableWrapper.cs
- SimpleHandlerFactory.cs
- CompensationDesigner.cs
- FixedTextView.cs
- BulletedListEventArgs.cs
- Attributes.cs
- ServiceCredentialsElement.cs
- WebPartTransformerAttribute.cs
- InfoCardAsymmetricCrypto.cs
- UrlPath.cs
- basevalidator.cs
- SymbolEqualComparer.cs
- InstanceContextMode.cs
- compensatingcollection.cs
- XmlIgnoreAttribute.cs
- HttpCacheVaryByContentEncodings.cs
- PreviewPageInfo.cs
- BufferAllocator.cs
- WorkflowEnvironment.cs
- HelpEvent.cs
- TextTreeNode.cs
- OLEDB_Enum.cs
- RowCache.cs
- Literal.cs
- TableLayoutRowStyleCollection.cs
- SqlDataSourceQuery.cs
- StorageInfo.cs
- WebPartMenuStyle.cs
- OraclePermissionAttribute.cs
- DecodeHelper.cs
- RangeValuePatternIdentifiers.cs
- DataGridViewImageColumn.cs
- ToolboxControl.cs
- RectAnimationBase.cs
- EditorResources.cs
- InternalSafeNativeMethods.cs
- BooleanConverter.cs
- MulticastDelegate.cs
- RemoteWebConfigurationHostServer.cs
- PageThemeCodeDomTreeGenerator.cs
- Validator.cs