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
- Vars.cs
- ToolStripLocationCancelEventArgs.cs
- LogicalTreeHelper.cs
- FormViewCommandEventArgs.cs
- _StreamFramer.cs
- AccessibleObject.cs
- NetNamedPipeBinding.cs
- ParseNumbers.cs
- ModifierKeysValueSerializer.cs
- WindowsGraphicsCacheManager.cs
- TaskFileService.cs
- PanelDesigner.cs
- OptimalBreakSession.cs
- DataTrigger.cs
- DrawingContextDrawingContextWalker.cs
- HealthMonitoringSectionHelper.cs
- COM2ExtendedUITypeEditor.cs
- DESCryptoServiceProvider.cs
- AdCreatedEventArgs.cs
- InstanceNormalEvent.cs
- ToolStripArrowRenderEventArgs.cs
- FullTextLine.cs
- Matrix3DStack.cs
- ManualResetEvent.cs
- XmlDataDocument.cs
- WebPartChrome.cs
- XmlDataFileEditor.cs
- UriTemplateMatch.cs
- MissingManifestResourceException.cs
- WebPartDescription.cs
- ListViewItem.cs
- PersonalizationProvider.cs
- ExceptionRoutedEventArgs.cs
- DataControlFieldHeaderCell.cs
- StringResourceManager.cs
- CodeComment.cs
- DataGridViewColumnConverter.cs
- CngKey.cs
- AssemblyAttributes.cs
- CodeNamespace.cs
- ReversePositionQuery.cs
- OleDbParameter.cs
- httpstaticobjectscollection.cs
- ReflectionHelper.cs
- ErrorCodes.cs
- TypeBuilderInstantiation.cs
- returneventsaver.cs
- HttpRequestCacheValidator.cs
- UnauthorizedWebPart.cs
- XmlQueryTypeFactory.cs
- StringValidatorAttribute.cs
- CodeDirectionExpression.cs
- Pair.cs
- RealizationDrawingContextWalker.cs
- OverlappedAsyncResult.cs
- SmtpClient.cs
- RecommendedAsConfigurableAttribute.cs
- ListViewItemMouseHoverEvent.cs
- StyleSheetComponentEditor.cs
- EventLogPermission.cs
- ReflectTypeDescriptionProvider.cs
- PerSessionInstanceContextProvider.cs
- CancellationTokenRegistration.cs
- EnumerableCollectionView.cs
- ProcessHost.cs
- TrackBar.cs
- ListBox.cs
- DSASignatureDeformatter.cs
- MsmqHostedTransportConfiguration.cs
- DataBindingCollection.cs
- DBAsyncResult.cs
- X509CertificateStore.cs
- SchemaElementLookUpTable.cs
- TypographyProperties.cs
- SQLInt16Storage.cs
- WebServiceErrorEvent.cs
- FormViewUpdateEventArgs.cs
- CatalogUtil.cs
- DataSourceDesigner.cs
- ListSourceHelper.cs
- CreateWorkflowOwnerCommand.cs
- PlaceHolder.cs
- EntryPointNotFoundException.cs
- Int32Storage.cs
- VisualBasicSettings.cs
- RepeatBehaviorConverter.cs
- MgmtConfigurationRecord.cs
- precedingquery.cs
- WhitespaceReader.cs
- followingsibling.cs
- HttpConfigurationSystem.cs
- CryptoProvider.cs
- HorizontalAlignConverter.cs
- WeakKeyDictionary.cs
- XmlNamespaceMapping.cs
- SmtpNegotiateAuthenticationModule.cs
- SqlCommandBuilder.cs
- ProcessManager.cs
- GZipDecoder.cs
- PrincipalPermission.cs