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 / 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
- PageAdapter.cs
- CompiledQuery.cs
- PropertyCondition.cs
- OrderedHashRepartitionStream.cs
- KnownAssemblyEntry.cs
- dbenumerator.cs
- XmlCharType.cs
- SafeNativeMethods.cs
- XmlDataProvider.cs
- Matrix3D.cs
- HandleCollector.cs
- Pool.cs
- RecognizeCompletedEventArgs.cs
- CurrencyWrapper.cs
- SecurityElement.cs
- ObjectViewListener.cs
- _SpnDictionary.cs
- BypassElementCollection.cs
- TextEditor.cs
- Matrix.cs
- Path.cs
- PreservationFileWriter.cs
- Win32KeyboardDevice.cs
- odbcmetadatacolumnnames.cs
- ReferencedType.cs
- TypeConverterMarkupExtension.cs
- codemethodreferenceexpression.cs
- InvariantComparer.cs
- DecoderBestFitFallback.cs
- SqlTransaction.cs
- ValueTypeFixupInfo.cs
- Button.cs
- URLAttribute.cs
- PtsHelper.cs
- SoapDocumentMethodAttribute.cs
- Atom10FormatterFactory.cs
- LayoutExceptionEventArgs.cs
- ObjectFullSpanRewriter.cs
- WaitHandle.cs
- RequestQueue.cs
- _RegBlobWebProxyDataBuilder.cs
- MetadataCacheItem.cs
- ResXResourceSet.cs
- TokenBasedSet.cs
- CookielessHelper.cs
- VScrollBar.cs
- NegationPusher.cs
- Size.cs
- WaveHeader.cs
- WebPartZone.cs
- XPathChildIterator.cs
- FileDialogPermission.cs
- OleDbInfoMessageEvent.cs
- EntityContainer.cs
- WebPartTransformerCollection.cs
- WebControl.cs
- SortQuery.cs
- HtmlGenericControl.cs
- Util.cs
- StrokeCollection.cs
- COMException.cs
- CreateUserErrorEventArgs.cs
- WsatProxy.cs
- BindingMAnagerBase.cs
- ConfigurationManagerHelper.cs
- EntityDataSourceEntityTypeFilterItem.cs
- LeaseManager.cs
- SqlUserDefinedTypeAttribute.cs
- ComboBoxRenderer.cs
- DoubleUtil.cs
- DesignerHierarchicalDataSourceView.cs
- BookmarkManager.cs
- CheckoutException.cs
- EncodingTable.cs
- SqlDataReader.cs
- GAC.cs
- NativeMethods.cs
- ActionFrame.cs
- ReadWriteObjectLock.cs
- UIElementIsland.cs
- SqlLiftIndependentRowExpressions.cs
- UnitControl.cs
- TextSpan.cs
- Expressions.cs
- WCFBuildProvider.cs
- CssTextWriter.cs
- FragmentQuery.cs
- ContentIterators.cs
- ExpanderAutomationPeer.cs
- SystemFonts.cs
- WSTransactionSection.cs
- TypeConstant.cs
- ScriptDescriptor.cs
- JsonEnumDataContract.cs
- QilPatternFactory.cs
- SQLString.cs
- LocalizationComments.cs
- Wildcard.cs
- PageEventArgs.cs
- ListBox.cs