Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- WsdlWriter.cs
- StringSorter.cs
- loginstatus.cs
- LazyTextWriterCreator.cs
- TraceContextRecord.cs
- compensatingcollection.cs
- TreeNodeStyle.cs
- CacheDependency.cs
- ProfileSection.cs
- WorkflowOperationInvoker.cs
- XmlDsigSep2000.cs
- DEREncoding.cs
- SortDescriptionCollection.cs
- ProxyWebPartManager.cs
- XmlCharCheckingReader.cs
- FrameworkContentElementAutomationPeer.cs
- webclient.cs
- ClassGenerator.cs
- DBParameter.cs
- UnsafeNativeMethodsPenimc.cs
- QilXmlReader.cs
- FrameworkName.cs
- EditorPartChrome.cs
- TrackBarRenderer.cs
- EdmRelationshipRoleAttribute.cs
- HuffmanTree.cs
- DataColumnSelectionConverter.cs
- CommonRemoteMemoryBlock.cs
- SharedPersonalizationStateInfo.cs
- EnvelopedPkcs7.cs
- ListViewAutomationPeer.cs
- WinFormsUtils.cs
- TrackingProfileSerializer.cs
- Stylesheet.cs
- SQLDouble.cs
- HtmlInputRadioButton.cs
- TextDocumentView.cs
- OracleString.cs
- CustomTypeDescriptor.cs
- ColumnResizeUndoUnit.cs
- InternalMappingException.cs
- ScriptReferenceEventArgs.cs
- FaultContractInfo.cs
- SymbolType.cs
- FilterQueryOptionExpression.cs
- DefaultTraceListener.cs
- DrawingDrawingContext.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- SessionEndingCancelEventArgs.cs
- TextDecorations.cs
- PagePropertiesChangingEventArgs.cs
- DoubleLinkListEnumerator.cs
- XmlNodeList.cs
- Encoding.cs
- XmlILIndex.cs
- StringSource.cs
- Token.cs
- ExpiredSecurityTokenException.cs
- ModelUIElement3D.cs
- WindowsFormsHostAutomationPeer.cs
- CursorConverter.cs
- TextTrailingCharacterEllipsis.cs
- HandlerMappingMemo.cs
- PerformanceCounterPermissionEntryCollection.cs
- DropShadowEffect.cs
- Boolean.cs
- SecureUICommand.cs
- LinqDataSourceDisposeEventArgs.cs
- COM2PropertyDescriptor.cs
- SqlUdtInfo.cs
- ReadOnlyAttribute.cs
- KeyManager.cs
- SettingsSavedEventArgs.cs
- SystemTcpStatistics.cs
- ValidationSummaryDesigner.cs
- Stacktrace.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- InnerItemCollectionView.cs
- DataGridCell.cs
- UserControlBuildProvider.cs
- CollaborationHelperFunctions.cs
- XmlSerializer.cs
- CharacterMetrics.cs
- NativeCppClassAttribute.cs
- ImageListStreamer.cs
- PopupRoot.cs
- DirectionalLight.cs
- IFlowDocumentViewer.cs
- Workspace.cs
- FixUp.cs
- ActivityBindForm.Designer.cs
- WebPartDescription.cs
- TextServicesCompartmentContext.cs
- RangeExpression.cs
- ProviderSettingsCollection.cs
- WebBrowsableAttribute.cs
- Timeline.cs
- TypeSystemHelpers.cs
- PiiTraceSource.cs
- NotCondition.cs