Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ContainerTracking.cs
- IntSecurity.cs
- WindowsToolbar.cs
- SafeRightsManagementSessionHandle.cs
- DependencyObjectPropertyDescriptor.cs
- DllHostedComPlusServiceHost.cs
- AddInStore.cs
- ControlDesigner.cs
- GradientBrush.cs
- Debug.cs
- System.Data.OracleClient_BID.cs
- DefaultClaimSet.cs
- AvTrace.cs
- ServicePoint.cs
- DocumentCollection.cs
- ProcessThread.cs
- FileUpload.cs
- IdleTimeoutMonitor.cs
- Geometry3D.cs
- IPHostEntry.cs
- CatalogPartChrome.cs
- METAHEADER.cs
- sqlinternaltransaction.cs
- SystemColorTracker.cs
- PrimitiveSchema.cs
- ContractReference.cs
- WmlPageAdapter.cs
- XmlSchemaComplexType.cs
- Rotation3D.cs
- ProfessionalColorTable.cs
- FontFamilyConverter.cs
- InitializerFacet.cs
- ListViewInsertEventArgs.cs
- TreeNodeEventArgs.cs
- DefaultValidator.cs
- ImageInfo.cs
- WebPartChrome.cs
- ComPlusServiceHost.cs
- ProxyWebPart.cs
- SrgsGrammarCompiler.cs
- VisualBasicSettingsHandler.cs
- Region.cs
- XmlDataCollection.cs
- control.ime.cs
- SiteMapProvider.cs
- DependencyPropertyValueSerializer.cs
- SecurityUniqueId.cs
- WindowsImpersonationContext.cs
- Tracer.cs
- WindowsComboBox.cs
- ConcatQueryOperator.cs
- GridView.cs
- BasicHttpSecurityElement.cs
- _ConnectStream.cs
- CodeCastExpression.cs
- ToolStripEditorManager.cs
- DataConnectionHelper.cs
- NegotiateStream.cs
- ButtonBase.cs
- SQLGuidStorage.cs
- XmlReader.cs
- ExpressionList.cs
- ComboBoxRenderer.cs
- HttpWriter.cs
- MethodRental.cs
- SessionStateUtil.cs
- HttpWebResponse.cs
- ClientClassGenerator.cs
- XmlSchemaCollection.cs
- PrintController.cs
- AssemblyHash.cs
- NumberAction.cs
- PenContexts.cs
- Rect3DValueSerializer.cs
- FrameworkPropertyMetadata.cs
- NetworkInterface.cs
- XmlAttributeOverrides.cs
- Guid.cs
- CriticalHandle.cs
- SecurityDocument.cs
- ElementUtil.cs
- VisualStyleInformation.cs
- PropertyCondition.cs
- XsltException.cs
- Animatable.cs
- DBSqlParserTableCollection.cs
- ReferenceEqualityComparer.cs
- X509ServiceCertificateAuthentication.cs
- PlainXmlSerializer.cs
- ContentOperations.cs
- DataColumnCollection.cs
- DelegateTypeInfo.cs
- Certificate.cs
- TaskExceptionHolder.cs
- MsmqIntegrationSecurityMode.cs
- CodeVariableReferenceExpression.cs
- EntityReference.cs
- FormCollection.cs
- ViewManager.cs
- SevenBitStream.cs