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
- Primitive.cs
- NamespaceDecl.cs
- IIS7UserPrincipal.cs
- UIElementAutomationPeer.cs
- OperatorExpressions.cs
- XmlSchemaFacet.cs
- ColorPalette.cs
- DelegatingTypeDescriptionProvider.cs
- EmbeddedMailObjectsCollection.cs
- DocumentViewerBase.cs
- DrawingServices.cs
- MenuTracker.cs
- X509AudioLogo.cs
- ConfigXmlComment.cs
- XmlText.cs
- FileStream.cs
- NetTcpSectionData.cs
- DtrList.cs
- RegisteredArrayDeclaration.cs
- SQLInt16.cs
- QilVisitor.cs
- PixelShader.cs
- LoginName.cs
- TreeNode.cs
- MarkupCompiler.cs
- ToolStripPanel.cs
- NativeCompoundFileAPIs.cs
- DefaultMergeHelper.cs
- QilStrConcatenator.cs
- QilInvokeEarlyBound.cs
- MarkupProperty.cs
- MarginsConverter.cs
- SystemUnicastIPAddressInformation.cs
- MarkedHighlightComponent.cs
- ObjectSpanRewriter.cs
- InvalidComObjectException.cs
- PathSegment.cs
- DbMetaDataCollectionNames.cs
- DownloadProgressEventArgs.cs
- BitmapFrame.cs
- ITextView.cs
- BookmarkTable.cs
- PolicyDesigner.cs
- StylusPointPropertyId.cs
- CodePageEncoding.cs
- GridSplitterAutomationPeer.cs
- NullableLongMinMaxAggregationOperator.cs
- MetaColumn.cs
- CrossContextChannel.cs
- SimpleRecyclingCache.cs
- HttpHeaderCollection.cs
- messageonlyhwndwrapper.cs
- Int64AnimationUsingKeyFrames.cs
- Touch.cs
- OleDbError.cs
- ProtocolViolationException.cs
- HTMLTagNameToTypeMapper.cs
- LocalServiceSecuritySettings.cs
- RelationshipEnd.cs
- M3DUtil.cs
- DataRow.cs
- MembershipPasswordException.cs
- AccessorTable.cs
- DiscoveryClientBindingElement.cs
- ContentFileHelper.cs
- ToolStripSplitStackLayout.cs
- Behavior.cs
- AppSettingsExpressionBuilder.cs
- ProfileManager.cs
- WebPartEditorOkVerb.cs
- PackUriHelper.cs
- ColorMatrix.cs
- TextParaLineResult.cs
- PreviousTrackingServiceAttribute.cs
- RowsCopiedEventArgs.cs
- IndicFontClient.cs
- FilteredXmlReader.cs
- ErrorHandler.cs
- DataGridViewCellLinkedList.cs
- InputDevice.cs
- SortFieldComparer.cs
- JoinTreeSlot.cs
- SortKey.cs
- CryptoStream.cs
- AccessDataSourceView.cs
- FindResponse.cs
- CodeTypeConstructor.cs
- MulticastOption.cs
- SqlRecordBuffer.cs
- ErrorLog.cs
- PaperSource.cs
- RightNameExpirationInfoPair.cs
- TitleStyle.cs
- OLEDB_Enum.cs
- WebControl.cs
- ApplicationId.cs
- BindingValueChangedEventArgs.cs
- ReplyChannelAcceptor.cs
- CodeCompileUnit.cs
- PrintController.cs