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
- HtmlLink.cs
- BufferBuilder.cs
- WebConfigurationHost.cs
- ReaderWriterLock.cs
- LabelDesigner.cs
- Object.cs
- XPathBinder.cs
- PagePropertiesChangingEventArgs.cs
- ControllableStoryboardAction.cs
- ProtocolsConfigurationHandler.cs
- filewebresponse.cs
- BmpBitmapDecoder.cs
- ObjectTokenCategory.cs
- SelectingProviderEventArgs.cs
- X509RawDataKeyIdentifierClause.cs
- ZoneMembershipCondition.cs
- HttpHeaderCollection.cs
- TemplateBaseAction.cs
- Module.cs
- ClientRoleProvider.cs
- ToolStripPanelDesigner.cs
- __Filters.cs
- LoginName.cs
- DashStyle.cs
- StreamWithDictionary.cs
- DispatcherHooks.cs
- CqlErrorHelper.cs
- ConvertEvent.cs
- FileDataSourceCache.cs
- DPTypeDescriptorContext.cs
- OneWayChannelFactory.cs
- KeyFrames.cs
- AssemblyFilter.cs
- RtfToXamlReader.cs
- EmptyImpersonationContext.cs
- Int32Collection.cs
- StylusTouchDevice.cs
- WebPartConnectionsConnectVerb.cs
- PathGradientBrush.cs
- Debugger.cs
- Configuration.cs
- XXXInfos.cs
- MenuAutomationPeer.cs
- ExpressionBuilderContext.cs
- XPathNode.cs
- Grid.cs
- OutputCacheModule.cs
- XNodeValidator.cs
- OneToOneMappingSerializer.cs
- StreamResourceInfo.cs
- Label.cs
- Pkcs9Attribute.cs
- OutputCacheProfileCollection.cs
- NonBatchDirectoryCompiler.cs
- RoleManagerEventArgs.cs
- SecurityElement.cs
- EmptyEnumerable.cs
- EventData.cs
- Debugger.cs
- InheritanceContextHelper.cs
- SplineKeyFrames.cs
- TimeoutHelper.cs
- IImplicitResourceProvider.cs
- ReadOnlyObservableCollection.cs
- XmlSchemaSimpleContentRestriction.cs
- ListViewUpdatedEventArgs.cs
- MimeParameters.cs
- ImageIndexConverter.cs
- ToolStripDropTargetManager.cs
- FormViewPageEventArgs.cs
- AppDomainShutdownMonitor.cs
- SessionStateUtil.cs
- DefaultValueConverter.cs
- ToolBarOverflowPanel.cs
- QueryExpression.cs
- Compilation.cs
- FontCollection.cs
- LineInfo.cs
- ExtendedPropertyDescriptor.cs
- BinaryUtilClasses.cs
- LineGeometry.cs
- DocumentSequenceHighlightLayer.cs
- SqlDataSourceSelectingEventArgs.cs
- CodeDelegateInvokeExpression.cs
- TextUtf8RawTextWriter.cs
- UnitySerializationHolder.cs
- UnwrappedTypesXmlSerializerManager.cs
- DotExpr.cs
- QueryStringConverter.cs
- TrustManagerMoreInformation.cs
- MultiAsyncResult.cs
- TextParentUndoUnit.cs
- CryptoStream.cs
- HitTestFilterBehavior.cs
- SimplePropertyEntry.cs
- PersistenceContextEnlistment.cs
- __Filters.cs
- __Filters.cs
- AddressHeaderCollection.cs
- AQNBuilder.cs