Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / InsufficientMemoryException.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PostBackTrigger.cs
- TableRowGroup.cs
- Button.cs
- MergeFilterQuery.cs
- DefaultPropertyAttribute.cs
- Highlights.cs
- WasEndpointConfigContainer.cs
- ScriptComponentDescriptor.cs
- TargetConverter.cs
- OracleInternalConnection.cs
- DateTimeConstantAttribute.cs
- EncoderFallback.cs
- HttpInputStream.cs
- XmlExtensionFunction.cs
- TraceEventCache.cs
- DateTimeFormatInfoScanner.cs
- InvokeHandlers.cs
- FlowDocumentView.cs
- DPCustomTypeDescriptor.cs
- SafeLibraryHandle.cs
- VirtualizedItemPattern.cs
- UIElement3DAutomationPeer.cs
- FloatSumAggregationOperator.cs
- PointAnimation.cs
- HttpListenerResponse.cs
- RelationHandler.cs
- ValidatorCollection.cs
- ClientSession.cs
- DashStyle.cs
- BinaryParser.cs
- ConditionalDesigner.cs
- ReachFixedDocumentSerializer.cs
- CmsInterop.cs
- IndexOutOfRangeException.cs
- PresentationSource.cs
- ComPersistableTypeElementCollection.cs
- StateMachineHelpers.cs
- AutoScrollHelper.cs
- InkCanvas.cs
- HierarchicalDataSourceControl.cs
- TreeNodeMouseHoverEvent.cs
- DetailsViewDeletedEventArgs.cs
- KeyToListMap.cs
- recordstatefactory.cs
- ServicePoint.cs
- DataServiceRequestArgs.cs
- ParserStreamGeometryContext.cs
- CommandField.cs
- FixedDSBuilder.cs
- StylusTip.cs
- Win32MouseDevice.cs
- EntityDataSourceColumn.cs
- DataViewManagerListItemTypeDescriptor.cs
- ListViewGroupConverter.cs
- ObfuscateAssemblyAttribute.cs
- _Win32.cs
- ProtocolViolationException.cs
- DefaultSerializationProviderAttribute.cs
- FormViewInsertedEventArgs.cs
- FormattedText.cs
- ComponentResourceKey.cs
- HtmlInputImage.cs
- ObjectRef.cs
- EntityEntry.cs
- LocatorPart.cs
- CipherData.cs
- ObjRef.cs
- XmlSchemaComplexContent.cs
- DbProviderConfigurationHandler.cs
- OverflowException.cs
- VirtualPathUtility.cs
- CorruptingExceptionCommon.cs
- ProtocolsConfiguration.cs
- HttpCacheVary.cs
- DataRecord.cs
- CssStyleCollection.cs
- IODescriptionAttribute.cs
- SafeFindHandle.cs
- SHA384Managed.cs
- HostedTransportConfigurationManager.cs
- TimerElapsedEvenArgs.cs
- Transform3D.cs
- InvalidAsynchronousStateException.cs
- SafeThreadHandle.cs
- StandardToolWindows.cs
- PropertyTab.cs
- MultiPageTextView.cs
- NamedPipeProcessProtocolHandler.cs
- Point3D.cs
- DataSourceHelper.cs
- TransformValueSerializer.cs
- UniqueIdentifierService.cs
- HwndKeyboardInputProvider.cs
- LambdaCompiler.Address.cs
- StringCollection.cs
- LineInfo.cs
- ByteStream.cs
- FamilyMapCollection.cs
- OverflowException.cs
- Matrix.cs