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
- StorageSetMapping.cs
- DataGridViewRowStateChangedEventArgs.cs
- EntityWithChangeTrackerStrategy.cs
- TreeViewEvent.cs
- RequiredAttributeAttribute.cs
- BitmapEffect.cs
- TextElementEnumerator.cs
- DrawListViewColumnHeaderEventArgs.cs
- ListView.cs
- QuaternionRotation3D.cs
- ReadOnlyDataSource.cs
- XomlCompilerResults.cs
- FunctionImportMapping.cs
- X509Utils.cs
- PasswordBox.cs
- BufferBuilder.cs
- HTMLTextWriter.cs
- DmlSqlGenerator.cs
- BuildProvider.cs
- SourceChangedEventArgs.cs
- graph.cs
- ObjectQueryState.cs
- GeometryDrawing.cs
- RegexGroupCollection.cs
- DataGridViewImageColumn.cs
- TableRow.cs
- PageTheme.cs
- HScrollBar.cs
- SrgsGrammarCompiler.cs
- WebPartTransformerAttribute.cs
- NativeCompoundFileAPIs.cs
- LongCountAggregationOperator.cs
- JsonFormatReaderGenerator.cs
- querybuilder.cs
- SoapSchemaMember.cs
- ToggleButtonAutomationPeer.cs
- FontConverter.cs
- CounterCreationDataCollection.cs
- LinqDataSourceContextEventArgs.cs
- WebBrowserPermission.cs
- SoapAttributeAttribute.cs
- ToolStripContextMenu.cs
- Zone.cs
- FormViewUpdatedEventArgs.cs
- ClientRuntimeConfig.cs
- DetailsViewUpdatedEventArgs.cs
- SqlParameterizer.cs
- DataServiceKeyAttribute.cs
- FieldNameLookup.cs
- DataRelationCollection.cs
- WaitHandleCannotBeOpenedException.cs
- Span.cs
- ProfileService.cs
- _NegoStream.cs
- FilterQuery.cs
- ReadWriteControlDesigner.cs
- SimpleFieldTemplateUserControl.cs
- EntryIndex.cs
- EntityStoreSchemaFilterEntry.cs
- StylusEventArgs.cs
- WeakEventTable.cs
- EntitySqlQueryCacheEntry.cs
- ToolStripOverflow.cs
- M3DUtil.cs
- SByteStorage.cs
- ConfigurationLocation.cs
- Button.cs
- thaishape.cs
- DefaultObjectSerializer.cs
- DataGridTextBox.cs
- Section.cs
- StylusTip.cs
- EdmEntityTypeAttribute.cs
- EntityContainerEntitySet.cs
- XmlQualifiedName.cs
- _ConnectOverlappedAsyncResult.cs
- CategoryAttribute.cs
- EntityProviderFactory.cs
- Aggregates.cs
- SqlTrackingService.cs
- WorkflowWebHostingModule.cs
- RoutedEventConverter.cs
- AnchoredBlock.cs
- xmlglyphRunInfo.cs
- StandardOleMarshalObject.cs
- OletxTransactionManager.cs
- BindingBase.cs
- TemplateParser.cs
- Viewport3DVisual.cs
- LocalizableAttribute.cs
- RuleSetDialog.cs
- DataColumnSelectionConverter.cs
- TrustLevelCollection.cs
- BaseParser.cs
- ChildDocumentBlock.cs
- ColorMap.cs
- WebReferencesBuildProvider.cs
- WorkflowWebService.cs
- Converter.cs
- MediaPlayer.cs