Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- SystemIPGlobalProperties.cs
- SerialPort.cs
- ParameterReplacerVisitor.cs
- XmlSignificantWhitespace.cs
- MultipleViewPatternIdentifiers.cs
- Control.cs
- ValidationPropertyAttribute.cs
- DoubleKeyFrameCollection.cs
- PolyQuadraticBezierSegment.cs
- StreamingContext.cs
- KeyValuePairs.cs
- FieldNameLookup.cs
- TraceInternal.cs
- AnimationStorage.cs
- PreservationFileWriter.cs
- FormsAuthenticationTicket.cs
- SuppressMessageAttribute.cs
- OutputScopeManager.cs
- AnnotationMap.cs
- Binding.cs
- SoapSchemaImporter.cs
- WebBrowsableAttribute.cs
- ADRole.cs
- HtmlListAdapter.cs
- UrlMappingCollection.cs
- MetabaseServerConfig.cs
- TextModifier.cs
- QueryActivatableWorkflowsCommand.cs
- DocumentCollection.cs
- CodeStatement.cs
- PropertyReferenceSerializer.cs
- ToolStripItem.cs
- SQLMembershipProvider.cs
- DesignerObject.cs
- GridView.cs
- MulticastOption.cs
- SqlConnectionPoolProviderInfo.cs
- XsltFunctions.cs
- ImageCodecInfo.cs
- SchemaLookupTable.cs
- RuntimeResourceSet.cs
- peersecuritysettings.cs
- DataControlFieldHeaderCell.cs
- Transform3D.cs
- PropertySegmentSerializer.cs
- WinFormsSpinner.cs
- SQLBytesStorage.cs
- ObjectToIdCache.cs
- AsyncContentLoadedEventArgs.cs
- ViewCellRelation.cs
- Control.cs
- CreateUserWizard.cs
- PasswordBoxAutomationPeer.cs
- LinqDataSourceInsertEventArgs.cs
- DesignerProperties.cs
- Regex.cs
- WebControl.cs
- Content.cs
- ImageFormatConverter.cs
- KeyEvent.cs
- Input.cs
- DbUpdateCommandTree.cs
- ButtonBaseAutomationPeer.cs
- SQLStringStorage.cs
- Script.cs
- PrinterUnitConvert.cs
- InvalidOleVariantTypeException.cs
- SplashScreen.cs
- TextViewBase.cs
- TCEAdapterGenerator.cs
- CrossSiteScriptingValidation.cs
- Switch.cs
- InstancePersistence.cs
- DataGridToolTip.cs
- SQLBytesStorage.cs
- DataSourceBooleanViewSchemaConverter.cs
- CodeEntryPointMethod.cs
- RSACryptoServiceProvider.cs
- LogSwitch.cs
- GeneralTransform3DGroup.cs
- Normalizer.cs
- DataControlFieldCollection.cs
- AssociationSetEnd.cs
- TextServicesHost.cs
- safex509handles.cs
- ConstantExpression.cs
- ScriptServiceAttribute.cs
- RuleProcessor.cs
- HtmlInputSubmit.cs
- TraceListener.cs
- HelloOperationCD1AsyncResult.cs
- UriExt.cs
- EntityDataSourceDesigner.cs
- AtomContentProperty.cs
- DesignerWebPartChrome.cs
- TypePropertyEditor.cs
- UnsettableComboBox.cs
- UserPersonalizationStateInfo.cs
- RegexStringValidator.cs
- FormClosingEvent.cs