Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / clr / src / BCL / System / InsufficientMemoryException.cs / 1 / InsufficientMemoryException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: InsufficientMemoryException ** ** ** Purpose: The exception class for running out of memory ** but most likely in a non-fatal way that shouldn't ** be affected by escalation policy. Use this for cases ** like MemoryFailPoint or a TryAllocate method, where you ** expect OOM's with no shared state corruption and you ** want to recover from these errors. ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Serialization; [Serializable()] public sealed class InsufficientMemoryException : OutOfMemoryException { public InsufficientMemoryException() : base(GetMessageFromNativeResources(ExceptionMessageKind.OutOfMemory)) { SetErrorCode(__HResults.COR_E_INSUFFICIENTMEMORY); } public InsufficientMemoryException(String message) : base(message) { SetErrorCode(__HResults.COR_E_INSUFFICIENTMEMORY); } public InsufficientMemoryException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_INSUFFICIENTMEMORY); } private InsufficientMemoryException(SerializationInfo info, StreamingContext context) : base(info, context) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: InsufficientMemoryException ** ** ** Purpose: The exception class for running out of memory ** but most likely in a non-fatal way that shouldn't ** be affected by escalation policy. Use this for cases ** like MemoryFailPoint or a TryAllocate method, where you ** expect OOM's with no shared state corruption and you ** want to recover from these errors. ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Serialization; [Serializable()] public sealed class InsufficientMemoryException : OutOfMemoryException { public InsufficientMemoryException() : base(GetMessageFromNativeResources(ExceptionMessageKind.OutOfMemory)) { SetErrorCode(__HResults.COR_E_INSUFFICIENTMEMORY); } public InsufficientMemoryException(String message) : base(message) { SetErrorCode(__HResults.COR_E_INSUFFICIENTMEMORY); } public InsufficientMemoryException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_INSUFFICIENTMEMORY); } private InsufficientMemoryException(SerializationInfo info, StreamingContext context) : base(info, context) { } } } // 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
- SqlTriggerContext.cs
- ProcessModelSection.cs
- PrivilegedConfigurationManager.cs
- OLEDB_Util.cs
- SmtpAuthenticationManager.cs
- CompressionTransform.cs
- EventHandlerService.cs
- CodePageEncoding.cs
- HtmlElementErrorEventArgs.cs
- HashFinalRequest.cs
- shaperfactory.cs
- TransformProviderWrapper.cs
- XmlChoiceIdentifierAttribute.cs
- NotSupportedException.cs
- XamlToRtfParser.cs
- MultiDataTrigger.cs
- QilCloneVisitor.cs
- DNS.cs
- VBIdentifierNameEditor.cs
- QuestionEventArgs.cs
- XmlName.cs
- VariableQuery.cs
- WebRequestModuleElement.cs
- StaticExtension.cs
- RealProxy.cs
- wmiutil.cs
- ParserContext.cs
- CommandDevice.cs
- CacheOutputQuery.cs
- RandomNumberGenerator.cs
- HMACRIPEMD160.cs
- Point3DAnimation.cs
- IfJoinedCondition.cs
- httpserverutility.cs
- ISAPIApplicationHost.cs
- Duration.cs
- OdbcReferenceCollection.cs
- XmlSchemaSequence.cs
- _ChunkParse.cs
- DataBoundControlHelper.cs
- XmlSortKeyAccumulator.cs
- DrawingContextWalker.cs
- ZipIOExtraFieldElement.cs
- CultureInfo.cs
- EventLogPermissionEntry.cs
- assemblycache.cs
- RuleSettings.cs
- XmlNotation.cs
- SQLMembershipProvider.cs
- ColumnResizeAdorner.cs
- InternalConfigRoot.cs
- ClientConfigurationSystem.cs
- ForeignKeyConstraint.cs
- RenderData.cs
- OracleBoolean.cs
- PageRanges.cs
- CryptoApi.cs
- ShaderEffect.cs
- SqlUDTStorage.cs
- FileDialog_Vista_Interop.cs
- IgnoreDeviceFilterElement.cs
- CompositeControl.cs
- VisualStateManager.cs
- VectorAnimationUsingKeyFrames.cs
- RSAOAEPKeyExchangeDeformatter.cs
- CrossSiteScriptingValidation.cs
- OracleColumn.cs
- ServiceSettingsResponseInfo.cs
- ClusterSafeNativeMethods.cs
- FederatedMessageSecurityOverHttp.cs
- SafeHandles.cs
- DoubleCollectionConverter.cs
- PersonalizablePropertyEntry.cs
- MetafileHeader.cs
- AddInBase.cs
- BoundsDrawingContextWalker.cs
- DecoderFallback.cs
- SizeAnimationClockResource.cs
- StreamReader.cs
- XmlSchemaSimpleContent.cs
- XpsFontSubsetter.cs
- DiagnosticsConfigurationHandler.cs
- BamlRecordReader.cs
- HMACSHA256.cs
- TagPrefixCollection.cs
- Point3D.cs
- DataGridViewEditingControlShowingEventArgs.cs
- DoWorkEventArgs.cs
- SiteMapPath.cs
- MimeTypeAttribute.cs
- AnnotationResourceCollection.cs
- ConfigViewGenerator.cs
- UserControlParser.cs
- BaseValidator.cs
- selecteditemcollection.cs
- Restrictions.cs
- StorageSetMapping.cs
- NotCondition.cs
- DataGrid.cs
- ZoomPercentageConverter.cs