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
- Roles.cs
- WebEncodingValidator.cs
- SessionEndedEventArgs.cs
- ImageFormat.cs
- XmlSchemaSimpleTypeList.cs
- InvalidPrinterException.cs
- NgenServicingAttributes.cs
- DrawItemEvent.cs
- LambdaCompiler.Expressions.cs
- LabelAutomationPeer.cs
- QueryBranchOp.cs
- WebPartConnectionsEventArgs.cs
- Object.cs
- SelectedGridItemChangedEvent.cs
- SRef.cs
- Camera.cs
- HttpConfigurationContext.cs
- PermissionToken.cs
- SoapIgnoreAttribute.cs
- XmlCustomFormatter.cs
- TemplateNameScope.cs
- BoundField.cs
- ScrollEvent.cs
- AttributeAction.cs
- TextBlockAutomationPeer.cs
- ScrollData.cs
- StrokeNodeEnumerator.cs
- RadioButtonList.cs
- DisplayNameAttribute.cs
- RegexMatch.cs
- RNGCryptoServiceProvider.cs
- SimpleTableProvider.cs
- SqlMultiplexer.cs
- StatusBarPanelClickEvent.cs
- IListConverters.cs
- IdnElement.cs
- Brush.cs
- ProfileModule.cs
- Expander.cs
- XamlWriter.cs
- TextProperties.cs
- util.cs
- TrackingRecordPreFilter.cs
- SynchronizationContext.cs
- TraceHandlerErrorFormatter.cs
- WindowsFormsHostPropertyMap.cs
- Span.cs
- SqlTriggerContext.cs
- EnumValAlphaComparer.cs
- ResourceReferenceKeyNotFoundException.cs
- FlowDocumentReaderAutomationPeer.cs
- FormsAuthenticationUserCollection.cs
- ResourceReferenceExpression.cs
- ValueSerializerAttribute.cs
- MappingModelBuildProvider.cs
- RequestTimeoutManager.cs
- TraceEventCache.cs
- SpeechRecognizer.cs
- ComponentCommands.cs
- XmlSchemaAttribute.cs
- BinaryMethodMessage.cs
- Page.cs
- handlecollector.cs
- ObjectConverter.cs
- XmlSchemaSimpleTypeRestriction.cs
- ExpressionNormalizer.cs
- DataListItemEventArgs.cs
- MethodImplAttribute.cs
- SchemaObjectWriter.cs
- Point3DAnimationUsingKeyFrames.cs
- KeyBinding.cs
- OleStrCAMarshaler.cs
- PeerNodeTraceRecord.cs
- WorkflowQueue.cs
- XamlVector3DCollectionSerializer.cs
- ProxyFragment.cs
- TemplateAction.cs
- IsolatedStorageFilePermission.cs
- BaseConfigurationRecord.cs
- ErrorRuntimeConfig.cs
- DynamicDocumentPaginator.cs
- CounterSetInstance.cs
- ContentElement.cs
- TaiwanLunisolarCalendar.cs
- Rijndael.cs
- LOSFormatter.cs
- EmptyElement.cs
- SystemIcmpV4Statistics.cs
- WebRequestModulesSection.cs
- UserControlParser.cs
- SmtpTransport.cs
- FilterQuery.cs
- NegotiateStream.cs
- XmlArrayAttribute.cs
- WindowsListBox.cs
- RegexInterpreter.cs
- MatrixValueSerializer.cs
- TextTreeUndo.cs
- WorkflowTerminatedException.cs
- SoapElementAttribute.cs