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
- DataSourceXmlSerializer.cs
- BufferedGraphicsContext.cs
- ClientBuildManagerCallback.cs
- DocumentApplicationJournalEntryEventArgs.cs
- WsiProfilesElementCollection.cs
- PropertyTabAttribute.cs
- StreamInfo.cs
- SqlDataSourceAdvancedOptionsForm.cs
- UIHelper.cs
- ConnectionOrientedTransportChannelListener.cs
- TemplateControlParser.cs
- RC2.cs
- SchemaCollectionCompiler.cs
- LZCodec.cs
- LightweightEntityWrapper.cs
- ContentPropertyAttribute.cs
- WindowsAuthenticationEventArgs.cs
- _emptywebproxy.cs
- OperationAbortedException.cs
- XPathCompileException.cs
- CodeCompileUnit.cs
- ThicknessConverter.cs
- KeyFrames.cs
- CallbackException.cs
- DispatchChannelSink.cs
- GenericPrincipal.cs
- ButtonBaseAutomationPeer.cs
- AssemblyAttributes.cs
- VirtualizingPanel.cs
- ExpressionVisitorHelpers.cs
- MessagingDescriptionAttribute.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- Marshal.cs
- SelectionEditor.cs
- PriorityQueue.cs
- DeflateStream.cs
- SelectionProviderWrapper.cs
- StrongName.cs
- EntityParameter.cs
- CheckedPointers.cs
- WindowsScrollBarBits.cs
- SubtreeProcessor.cs
- StylusDevice.cs
- GeneralTransform2DTo3D.cs
- CountdownEvent.cs
- ToolStripOverflowButton.cs
- GroupLabel.cs
- MergeEnumerator.cs
- OrderByBuilder.cs
- SafeCoTaskMem.cs
- SpeakCompletedEventArgs.cs
- ColumnResizeUndoUnit.cs
- CacheAxisQuery.cs
- ImageMap.cs
- SoapSchemaImporter.cs
- SessionChannels.cs
- ProviderConnectionPoint.cs
- _HTTPDateParse.cs
- AssemblyBuilder.cs
- DashStyle.cs
- SqlUDTStorage.cs
- WebServiceErrorEvent.cs
- StateWorkerRequest.cs
- FilterException.cs
- TaskHelper.cs
- FileUpload.cs
- ChildTable.cs
- ListViewInsertedEventArgs.cs
- WebCategoryAttribute.cs
- IndexingContentUnit.cs
- TextViewBase.cs
- CodeEntryPointMethod.cs
- TemplateControl.cs
- TagPrefixCollection.cs
- ResourcePermissionBase.cs
- BuildProviderCollection.cs
- Oid.cs
- LineServicesRun.cs
- EventLog.cs
- Bits.cs
- TypefaceMap.cs
- CookielessData.cs
- PartialArray.cs
- CookielessHelper.cs
- Utility.cs
- IsolationInterop.cs
- XmlConvert.cs
- DBCSCodePageEncoding.cs
- BufferModeSettings.cs
- HScrollBar.cs
- Registry.cs
- Tablet.cs
- GridEntry.cs
- XmlNavigatorFilter.cs
- WindowsIdentity.cs
- CultureNotFoundException.cs
- CheckBoxRenderer.cs
- MdiWindowListStrip.cs
- ConstraintCollection.cs
- HealthMonitoringSectionHelper.cs