Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- exports.cs
- SemanticAnalyzer.cs
- CompressedStack.cs
- RowTypeElement.cs
- QilInvokeEarlyBound.cs
- ObjectNotFoundException.cs
- CodeConstructor.cs
- ConfigXmlCDataSection.cs
- CredentialCache.cs
- InternalBase.cs
- MarginsConverter.cs
- Int32.cs
- HyperLinkColumn.cs
- SynchronizedInputAdaptor.cs
- isolationinterop.cs
- QueryOptionExpression.cs
- SqlWorkflowInstanceStoreLock.cs
- DynamicDataExtensions.cs
- SimpleFileLog.cs
- Expr.cs
- ThumbButtonInfoCollection.cs
- QueryOutputWriter.cs
- GridViewItemAutomationPeer.cs
- RequestNavigateEventArgs.cs
- ReadOnlyCollection.cs
- WrapPanel.cs
- XPathDocumentBuilder.cs
- NeutralResourcesLanguageAttribute.cs
- SqlClientWrapperSmiStream.cs
- JsonWriter.cs
- TabControlAutomationPeer.cs
- MsdtcWrapper.cs
- Label.cs
- Task.cs
- Int64Converter.cs
- DataStreamFromComStream.cs
- TypeLoadException.cs
- DesignerActionService.cs
- SqlProvider.cs
- DesignTimeTemplateParser.cs
- ProjectionNode.cs
- _DisconnectOverlappedAsyncResult.cs
- CookieHandler.cs
- NamespaceEmitter.cs
- SRef.cs
- DataGridTable.cs
- _SpnDictionary.cs
- IntPtr.cs
- IsolatedStorageFileStream.cs
- Atom10FormatterFactory.cs
- _ConnectStream.cs
- FormsAuthenticationModule.cs
- WSHttpBindingCollectionElement.cs
- SqlDataSourceSelectingEventArgs.cs
- CrossAppDomainChannel.cs
- HttpAsyncResult.cs
- SqlConnection.cs
- PersistenceProviderDirectory.cs
- PersonalizationStateInfoCollection.cs
- HttpCapabilitiesEvaluator.cs
- FontFamily.cs
- TextTreeRootNode.cs
- DiscoveryClientOutputChannel.cs
- ConfigXmlAttribute.cs
- QilDataSource.cs
- SiteOfOriginPart.cs
- SecurityDescriptor.cs
- XmlILAnnotation.cs
- CodeTypeDeclaration.cs
- InvalidAsynchronousStateException.cs
- CalendarSelectionChangedEventArgs.cs
- DataGridViewRowsAddedEventArgs.cs
- Monitor.cs
- XmlObjectSerializerReadContext.cs
- CodeDomConfigurationHandler.cs
- UInt64Storage.cs
- PathFigure.cs
- Calendar.cs
- TdsRecordBufferSetter.cs
- RouteParameter.cs
- GorillaCodec.cs
- PageContentAsyncResult.cs
- HostedElements.cs
- TextBoxBase.cs
- SlotInfo.cs
- ProcessModelSection.cs
- Cast.cs
- SubMenuStyle.cs
- RawTextInputReport.cs
- XmlHierarchicalEnumerable.cs
- hresults.cs
- MonitorWrapper.cs
- TempFiles.cs
- ClientSideQueueItem.cs
- MeshGeometry3D.cs
- Stylesheet.cs
- FontStyleConverter.cs
- CodeDelegateCreateExpression.cs
- _UriSyntax.cs
- ContextMenuStrip.cs