Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- FontSourceCollection.cs
- TraceFilter.cs
- XmlTextReaderImpl.cs
- RangeBase.cs
- Transform3DGroup.cs
- StringSorter.cs
- SqlMethods.cs
- IncrementalReadDecoders.cs
- DrawListViewColumnHeaderEventArgs.cs
- ParallelRangeManager.cs
- GridEntry.cs
- DataMisalignedException.cs
- ObjectStateFormatter.cs
- MetadataItemSerializer.cs
- MasterPageParser.cs
- RemotingConfiguration.cs
- XmlDataCollection.cs
- PrivilegedConfigurationManager.cs
- PackUriHelper.cs
- WaitHandle.cs
- ISAPIWorkerRequest.cs
- DesignSurfaceManager.cs
- ReachDocumentSequenceSerializerAsync.cs
- FocusManager.cs
- OleDbRowUpdatingEvent.cs
- EncoderFallback.cs
- ChannelSinkStacks.cs
- X509UI.cs
- ByteArrayHelperWithString.cs
- InvalidPrinterException.cs
- Expression.DebuggerProxy.cs
- PropertyGridEditorPart.cs
- MissingMethodException.cs
- SqlDataSourceSelectingEventArgs.cs
- HttpListenerElement.cs
- SchemaManager.cs
- Knowncolors.cs
- SchemaCollectionCompiler.cs
- DataGridToolTip.cs
- PersonalizationEntry.cs
- SimpleTextLine.cs
- Helpers.cs
- TypeExtensionSerializer.cs
- NamespaceDecl.cs
- HierarchicalDataSourceConverter.cs
- IdnMapping.cs
- TemplateBuilder.cs
- _TimerThread.cs
- FusionWrap.cs
- TrustManager.cs
- AstNode.cs
- InputBuffer.cs
- MemberDescriptor.cs
- WS2007HttpBindingCollectionElement.cs
- ConfigurationPermission.cs
- PageStatePersister.cs
- PropertyDescriptor.cs
- HttpApplicationStateWrapper.cs
- PerfProviderCollection.cs
- MonitoringDescriptionAttribute.cs
- Group.cs
- DataTemplateKey.cs
- CharEntityEncoderFallback.cs
- Vector3DKeyFrameCollection.cs
- ProtocolsConfigurationEntry.cs
- AmbientProperties.cs
- ProxyWebPart.cs
- MenuEventArgs.cs
- CodeTypeReferenceCollection.cs
- ISAPIRuntime.cs
- ExpanderAutomationPeer.cs
- HandleRef.cs
- WebServicesInteroperability.cs
- BlobPersonalizationState.cs
- RotateTransform3D.cs
- MenuTracker.cs
- XsdCachingReader.cs
- SafeReversePInvokeHandle.cs
- ListViewUpdatedEventArgs.cs
- DrawingContextDrawingContextWalker.cs
- EngineSite.cs
- TemplatedMailWebEventProvider.cs
- StringExpressionSet.cs
- WmfPlaceableFileHeader.cs
- CompressStream.cs
- SqlUserDefinedAggregateAttribute.cs
- QueryExecutionOption.cs
- xmlfixedPageInfo.cs
- DesignerWebPartChrome.cs
- printdlgexmarshaler.cs
- SoapDocumentServiceAttribute.cs
- RegisteredHiddenField.cs
- DataTableCollection.cs
- RemoteCryptoSignHashRequest.cs
- FunctionQuery.cs
- DataControlButton.cs
- ProcessInputEventArgs.cs
- ClientConfigPaths.cs
- ControlPropertyNameConverter.cs
- DataGridrowEditEndingEventArgs.cs