Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / OutOfMemoryException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated 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); } [System.Security.SecuritySafeCritical] // auto-generated 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
- Context.cs
- PageSetupDialog.cs
- DtrList.cs
- RectangleHotSpot.cs
- TextBoxAutomationPeer.cs
- FlowLayoutSettings.cs
- InputProcessorProfiles.cs
- WeakReferenceList.cs
- AppDomain.cs
- TableRowGroup.cs
- LinkedResource.cs
- ElementNotAvailableException.cs
- StandardRuntimeEnumValidator.cs
- MemberBinding.cs
- EndpointDispatcherTable.cs
- TextBlock.cs
- SessionStateSection.cs
- HighlightOverlayGlyph.cs
- OneWayBindingElement.cs
- LayoutUtils.cs
- DoubleLinkListEnumerator.cs
- SqlBulkCopyColumnMapping.cs
- ToolConsole.cs
- EntityDataSourceContextDisposingEventArgs.cs
- UTF32Encoding.cs
- Style.cs
- SizeConverter.cs
- wmiprovider.cs
- ScopedKnownTypes.cs
- DataSvcMapFileSerializer.cs
- XappLauncher.cs
- WaitHandleCannotBeOpenedException.cs
- PlainXmlWriter.cs
- ChannelServices.cs
- ExpressionBindingCollection.cs
- Pen.cs
- SizeFConverter.cs
- AppDomainFactory.cs
- TextBoxBase.cs
- MdbDataFileEditor.cs
- HeaderCollection.cs
- FilterElement.cs
- ConnectionPoolManager.cs
- ContentPresenter.cs
- PointCollection.cs
- PnrpPermission.cs
- SecurityImpersonationBehavior.cs
- FontSourceCollection.cs
- DefaultEventAttribute.cs
- DictionaryItemsCollection.cs
- FontUnitConverter.cs
- MessageDecoder.cs
- TextRunCache.cs
- _CommandStream.cs
- MobileControlDesigner.cs
- HwndTarget.cs
- UIElement.cs
- ImageList.cs
- Point.cs
- DescendantQuery.cs
- LambdaCompiler.Expressions.cs
- ServicePointManagerElement.cs
- InkCanvas.cs
- PriorityQueue.cs
- InlineCollection.cs
- TextViewElement.cs
- MarshalByRefObject.cs
- ObjectKeyFrameCollection.cs
- AdCreatedEventArgs.cs
- PageStatePersister.cs
- Mappings.cs
- EntityConnectionStringBuilderItem.cs
- webproxy.cs
- QueryAccessibilityHelpEvent.cs
- TransactedReceiveData.cs
- ImportContext.cs
- ControlsConfig.cs
- RegexWorker.cs
- XmlAnyElementAttribute.cs
- X500Name.cs
- DataGridViewCellStyleChangedEventArgs.cs
- LeaseManager.cs
- WmlFormAdapter.cs
- _NegoStream.cs
- RegularExpressionValidator.cs
- WorkerRequest.cs
- CollectionContainer.cs
- HwndSourceParameters.cs
- WindowsComboBox.cs
- ProbeDuplexAsyncResult.cs
- ListBox.cs
- AnimationClockResource.cs
- AxHost.cs
- Comparer.cs
- DataListItem.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- Common.cs
- BitFlagsGenerator.cs
- webclient.cs
- CheckBoxRenderer.cs