Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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) { } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RemoteWebConfigurationHostServer.cs
- TypeConverterAttribute.cs
- GeometryCombineModeValidation.cs
- KnownBoxes.cs
- CompileXomlTask.cs
- CacheEntry.cs
- DesignerAdRotatorAdapter.cs
- TextEffectCollection.cs
- ExtentCqlBlock.cs
- AccessDataSource.cs
- FormsAuthenticationUserCollection.cs
- SqlConnectionString.cs
- TraceFilter.cs
- PageParser.cs
- ValueTypeFixupInfo.cs
- AutomationPropertyInfo.cs
- TemplateColumn.cs
- AddInBase.cs
- WizardPanelChangingEventArgs.cs
- Knowncolors.cs
- _SpnDictionary.cs
- StylusSystemGestureEventArgs.cs
- BorderGapMaskConverter.cs
- MD5.cs
- SessionStateItemCollection.cs
- SqlCrossApplyToCrossJoin.cs
- WindowsListViewItem.cs
- HttpCachePolicyWrapper.cs
- RoutedEventValueSerializer.cs
- TripleDES.cs
- SqlColumnizer.cs
- BitmapMetadataEnumerator.cs
- XmlDataCollection.cs
- PrePostDescendentsWalker.cs
- PerformanceCounterPermissionEntry.cs
- OlePropertyStructs.cs
- DrawingContextWalker.cs
- AdapterDictionary.cs
- TextElementAutomationPeer.cs
- DebugTraceHelper.cs
- Stroke2.cs
- ObjectManager.cs
- DataBoundControlHelper.cs
- MissingSatelliteAssemblyException.cs
- ScrollPatternIdentifiers.cs
- AsymmetricKeyExchangeDeformatter.cs
- _NegoState.cs
- WindowsUpDown.cs
- RelativeSource.cs
- SerializeAbsoluteContext.cs
- PropertyGeneratedEventArgs.cs
- SqlTypeConverter.cs
- CancelEventArgs.cs
- FindCriteriaElement.cs
- MultiPropertyDescriptorGridEntry.cs
- SchemaMapping.cs
- CertificateManager.cs
- TreeIterators.cs
- IIS7UserPrincipal.cs
- UriSection.cs
- HitTestDrawingContextWalker.cs
- DesignerObject.cs
- TimelineClockCollection.cs
- TokenBasedSet.cs
- DriveNotFoundException.cs
- DataGridViewCell.cs
- HuffModule.cs
- Attributes.cs
- EndpointAddressMessageFilterTable.cs
- CornerRadiusConverter.cs
- PointAnimationBase.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ValueUtilsSmi.cs
- AutomationElementCollection.cs
- ColumnMapCopier.cs
- MsmqIntegrationChannelFactory.cs
- ModelPropertyImpl.cs
- SafeProcessHandle.cs
- XmlRawWriter.cs
- SerialErrors.cs
- DataGridViewSortCompareEventArgs.cs
- XNodeValidator.cs
- ImportContext.cs
- ScriptMethodAttribute.cs
- CommonRemoteMemoryBlock.cs
- DataDocumentXPathNavigator.cs
- ToolStripOverflow.cs
- DataSourceView.cs
- DocumentApplicationJournalEntry.cs
- PasswordRecovery.cs
- FormsAuthenticationUserCollection.cs
- XmlSchemaSimpleContentExtension.cs
- ServiceHost.cs
- ReferenceConverter.cs
- CopyOnWriteList.cs
- SchemaReference.cs
- SendMessageRecord.cs
- Registry.cs
- Rect3D.cs
- ProxyElement.cs