Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / clr / src / BCL / System / OutOfMemoryException.cs / 1 / OutOfMemoryException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: OutOfMemoryException ** ** ** Purpose: The exception class for OOM. ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable()] public class OutOfMemoryException : SystemException { public OutOfMemoryException() : base(GetMessageFromNativeResources(ExceptionMessageKind.OutOfMemory)) { SetErrorCode(__HResults.COR_E_OUTOFMEMORY); } public OutOfMemoryException(String message) : base(message) { SetErrorCode(__HResults.COR_E_OUTOFMEMORY); } public OutOfMemoryException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_OUTOFMEMORY); } protected OutOfMemoryException(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: OutOfMemoryException ** ** ** Purpose: The exception class for OOM. ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable()] public class OutOfMemoryException : SystemException { public OutOfMemoryException() : base(GetMessageFromNativeResources(ExceptionMessageKind.OutOfMemory)) { SetErrorCode(__HResults.COR_E_OUTOFMEMORY); } public OutOfMemoryException(String message) : base(message) { SetErrorCode(__HResults.COR_E_OUTOFMEMORY); } public OutOfMemoryException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_OUTOFMEMORY); } protected OutOfMemoryException(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
- ApplicationBuildProvider.cs
- PenThreadPool.cs
- Section.cs
- WinEventWrap.cs
- ConstNode.cs
- XmlSerializerOperationBehavior.cs
- TextChangedEventArgs.cs
- RowType.cs
- CrossContextChannel.cs
- EnumUnknown.cs
- ObjectListCommandEventArgs.cs
- AmbientLight.cs
- EditorAttribute.cs
- TextSegment.cs
- EndpointInfo.cs
- XmlAttribute.cs
- SelectionRange.cs
- AccessText.cs
- ICspAsymmetricAlgorithm.cs
- RestHandlerFactory.cs
- NavigationExpr.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- Config.cs
- Component.cs
- RC2.cs
- RuntimeIdentifierPropertyAttribute.cs
- CommentEmitter.cs
- ResolveCriteriaApril2005.cs
- RelatedPropertyManager.cs
- DrawingVisual.cs
- ModelService.cs
- EditCommandColumn.cs
- SizeConverter.cs
- TableAdapterManagerMethodGenerator.cs
- PenLineJoinValidation.cs
- DataGridViewColumnCollection.cs
- SymbolMethod.cs
- CollectionViewGroup.cs
- BitmapSourceSafeMILHandle.cs
- Component.cs
- ErrorRuntimeConfig.cs
- XPathSelectionIterator.cs
- QueryExpression.cs
- PeerNeighborManager.cs
- FormView.cs
- VersionPair.cs
- TagMapInfo.cs
- LinkedResourceCollection.cs
- Int32AnimationBase.cs
- AssociationEndMember.cs
- SignedPkcs7.cs
- SafeHandle.cs
- XmlSerializerAssemblyAttribute.cs
- Lease.cs
- Exceptions.cs
- PlainXmlDeserializer.cs
- XmlObjectSerializer.cs
- TextControlDesigner.cs
- SafeNativeMethods.cs
- PageCodeDomTreeGenerator.cs
- ObjectHelper.cs
- CatalogPartChrome.cs
- BinaryExpression.cs
- dataprotectionpermission.cs
- TypeUsageBuilder.cs
- SaveFileDialog.cs
- _NestedSingleAsyncResult.cs
- ExpressionConverter.cs
- BitmapMetadataBlob.cs
- UIServiceHelper.cs
- PreDigestedSignedInfo.cs
- ProvideValueServiceProvider.cs
- FixedHyperLink.cs
- HandoffBehavior.cs
- UrlAuthFailedErrorFormatter.cs
- TextTrailingWordEllipsis.cs
- UniqueID.cs
- Connector.cs
- DBConnectionString.cs
- ColorIndependentAnimationStorage.cs
- HitTestWithGeometryDrawingContextWalker.cs
- SpellerStatusTable.cs
- HttpRuntimeSection.cs
- Keyboard.cs
- XmlImplementation.cs
- StorageEndPropertyMapping.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- TokenFactoryCredential.cs
- UpdatePanelTriggerCollection.cs
- WindowsScroll.cs
- ScrollEventArgs.cs
- GlyphRunDrawing.cs
- WindowsListViewSubItem.cs
- LifetimeServices.cs
- EmptyEnumerable.cs
- Mouse.cs
- HwndStylusInputProvider.cs
- ConfigurationErrorsException.cs
- WindowsStatusBar.cs
- WindowShowOrOpenTracker.cs