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
- TypeElement.cs
- StorageAssociationTypeMapping.cs
- arabicshape.cs
- TextEditorTables.cs
- HttpException.cs
- PassportPrincipal.cs
- XmlHierarchicalDataSourceView.cs
- DbConnectionPoolIdentity.cs
- FolderNameEditor.cs
- CheckedListBox.cs
- ShellProvider.cs
- TypeExtensions.cs
- ClientConfigurationHost.cs
- FileInfo.cs
- Attributes.cs
- EtwTrace.cs
- BaseHashHelper.cs
- BufferAllocator.cs
- InternalBufferOverflowException.cs
- UserPersonalizationStateInfo.cs
- OrthographicCamera.cs
- WebPartVerbCollection.cs
- MenuItemCollection.cs
- Flattener.cs
- TraceSwitch.cs
- TrackingWorkflowEventArgs.cs
- PingOptions.cs
- HuffmanTree.cs
- StreamUpdate.cs
- TransformGroup.cs
- WhitespaceRuleLookup.cs
- DesignerSerializationOptionsAttribute.cs
- SessionState.cs
- namescope.cs
- ProxyAttribute.cs
- InstanceHandleConflictException.cs
- AuthenticationService.cs
- StatusBarAutomationPeer.cs
- ComponentRenameEvent.cs
- SymLanguageVendor.cs
- CodeTypeDelegate.cs
- BinHexEncoding.cs
- ReaderWriterLockWrapper.cs
- InheritanceRules.cs
- StylusPointProperty.cs
- HitTestResult.cs
- BuiltInExpr.cs
- XmlElement.cs
- TreeNode.cs
- Registration.cs
- TreeNodeCollection.cs
- InvokeBase.cs
- UserMapPath.cs
- Vector3DValueSerializer.cs
- Single.cs
- EntityStoreSchemaFilterEntry.cs
- PropertyEmitter.cs
- Component.cs
- SoapHeaders.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- RequestResizeEvent.cs
- ConfigurationStrings.cs
- ConnectionConsumerAttribute.cs
- EdmValidator.cs
- ToolStripItemImageRenderEventArgs.cs
- ClosableStream.cs
- InputBuffer.cs
- HostnameComparisonMode.cs
- DbParameterHelper.cs
- Property.cs
- MetadataArtifactLoaderCompositeFile.cs
- ToolStripItemRenderEventArgs.cs
- DataGridViewRowHeaderCell.cs
- TextRunTypographyProperties.cs
- CodeGotoStatement.cs
- TreeViewEvent.cs
- DeploymentSectionCache.cs
- CharacterMetricsDictionary.cs
- ResXResourceWriter.cs
- DataGridAddNewRow.cs
- SystemIPGlobalProperties.cs
- EventDescriptor.cs
- DataGridViewRowsAddedEventArgs.cs
- SelectionChangedEventArgs.cs
- TdsParser.cs
- SemanticResolver.cs
- BitmapFrame.cs
- DragDrop.cs
- WizardSideBarListControlItem.cs
- BasicViewGenerator.cs
- DetailsViewCommandEventArgs.cs
- DefinitionBase.cs
- DataStreamFromComStream.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- FormViewPagerRow.cs
- Connector.xaml.cs
- cookie.cs
- XmlIlGenerator.cs
- HyperLinkField.cs
- RadioButtonAutomationPeer.cs