Code:
/ FX-1434 / FX-1434 / 1.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
- TableCell.cs
- ClientSideQueueItem.cs
- DataGridViewTextBoxColumn.cs
- EventDescriptor.cs
- UnaryNode.cs
- CommentGlyph.cs
- Util.cs
- EdmMember.cs
- ObjectAnimationBase.cs
- RowBinding.cs
- sqlnorm.cs
- AlphabeticalEnumConverter.cs
- ContractAdapter.cs
- PaintEvent.cs
- HandlerElement.cs
- PropertyPathWorker.cs
- CatalogPartChrome.cs
- RenderingEventArgs.cs
- DeflateStream.cs
- GenericAuthenticationEventArgs.cs
- AutoSizeComboBox.cs
- Visual3D.cs
- BaseUriHelper.cs
- IpcManager.cs
- DocumentViewerConstants.cs
- SrgsSubset.cs
- XmlAttributeAttribute.cs
- Parallel.cs
- AffineTransform3D.cs
- FontUnitConverter.cs
- MexServiceChannelBuilder.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- ButtonBaseAdapter.cs
- ManagementException.cs
- DataServiceResponse.cs
- MergeLocalizationDirectives.cs
- ItemsChangedEventArgs.cs
- CodeExpressionCollection.cs
- TextContainerHelper.cs
- ListViewSortEventArgs.cs
- ProvidersHelper.cs
- SoapReflectionImporter.cs
- ZoneLinkButton.cs
- SqlDependencyListener.cs
- FormViewDeletedEventArgs.cs
- HttpCookiesSection.cs
- TextRunProperties.cs
- JsonSerializer.cs
- SizeIndependentAnimationStorage.cs
- DoubleStorage.cs
- SchemaCollectionPreprocessor.cs
- ProfileParameter.cs
- MonthChangedEventArgs.cs
- SoapCodeExporter.cs
- WebBrowserEvent.cs
- GridViewCommandEventArgs.cs
- TableCellAutomationPeer.cs
- Duration.cs
- XmlParser.cs
- WindowsToolbar.cs
- CodeCastExpression.cs
- FakeModelPropertyImpl.cs
- ManagedIStream.cs
- RawStylusSystemGestureInputReport.cs
- TypeForwardedToAttribute.cs
- NameTable.cs
- JulianCalendar.cs
- FormatException.cs
- OLEDB_Util.cs
- PersonalizationProviderCollection.cs
- ObjectQueryState.cs
- AssemblyHash.cs
- HostingPreferredMapPath.cs
- MediaPlayerState.cs
- SettingsPropertyCollection.cs
- ToolStripLabel.cs
- ColorMap.cs
- BooleanStorage.cs
- DataReceivedEventArgs.cs
- GridViewPageEventArgs.cs
- FilteredReadOnlyMetadataCollection.cs
- Single.cs
- EntryWrittenEventArgs.cs
- WebScriptEndpoint.cs
- UnmanagedMemoryStreamWrapper.cs
- SymmetricAlgorithm.cs
- ProfileSettingsCollection.cs
- Parser.cs
- CodeStatement.cs
- List.cs
- Decorator.cs
- LinqDataSourceHelper.cs
- StreamSecurityUpgradeAcceptorBase.cs
- OracleCommand.cs
- LayoutTable.cs
- AutomationElementCollection.cs
- StringDictionaryCodeDomSerializer.cs
- HttpProfileBase.cs
- TextEditorSpelling.cs
- HttpsChannelFactory.cs