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
- MethodExecutor.cs
- Guid.cs
- ListViewUpdateEventArgs.cs
- XmlObjectSerializerWriteContextComplex.cs
- Popup.cs
- ExpressionVisitor.cs
- sitestring.cs
- SqlParameter.cs
- TextElementEnumerator.cs
- ProtocolsSection.cs
- SetterTriggerConditionValueConverter.cs
- OleCmdHelper.cs
- MetadataItemEmitter.cs
- BreadCrumbTextConverter.cs
- IndexedString.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- ThicknessAnimationUsingKeyFrames.cs
- XmlILIndex.cs
- BindingBase.cs
- ThicknessAnimationBase.cs
- GroupQuery.cs
- BindingWorker.cs
- DbInsertCommandTree.cs
- WpfKnownMember.cs
- BitSet.cs
- EventData.cs
- CellPartitioner.cs
- MsmqInputChannel.cs
- RangeContentEnumerator.cs
- CookieParameter.cs
- PointHitTestParameters.cs
- BaseParser.cs
- StateManagedCollection.cs
- ChangeDirector.cs
- HttpDebugHandler.cs
- ControlPropertyNameConverter.cs
- SimpleWebHandlerParser.cs
- InternalDispatchObject.cs
- MatrixAnimationBase.cs
- DateTimeOffsetStorage.cs
- AliasGenerator.cs
- ObjectListFieldCollection.cs
- HttpCapabilitiesSectionHandler.cs
- PerfProviderCollection.cs
- InboundActivityHelper.cs
- ValueChangedEventManager.cs
- WriteableBitmap.cs
- ColumnPropertiesGroup.cs
- Parameter.cs
- Main.cs
- QueueProcessor.cs
- Exception.cs
- HelpProvider.cs
- BCLDebug.cs
- TemplateControlBuildProvider.cs
- ColumnResult.cs
- UrlParameterReader.cs
- ListViewInsertEventArgs.cs
- updatecommandorderer.cs
- RSAOAEPKeyExchangeDeformatter.cs
- COM2ExtendedUITypeEditor.cs
- WindowsEditBox.cs
- InternalSendMessage.cs
- Vector3D.cs
- SelectionProcessor.cs
- bindurihelper.cs
- SchemaImporter.cs
- AVElementHelper.cs
- KerberosRequestorSecurityToken.cs
- PieceNameHelper.cs
- CustomAssemblyResolver.cs
- SiteMapNode.cs
- ColumnCollection.cs
- SqlCommand.cs
- SessionStateUtil.cs
- RequiredFieldValidator.cs
- GradientSpreadMethodValidation.cs
- StyleSelector.cs
- HttpBufferlessInputStream.cs
- ComponentChangingEvent.cs
- ImageFormatConverter.cs
- HyperLink.cs
- InputScopeManager.cs
- PointAnimationUsingPath.cs
- RangeValidator.cs
- UriExt.cs
- FirstMatchCodeGroup.cs
- MLangCodePageEncoding.cs
- SortedDictionary.cs
- SchemaLookupTable.cs
- PageCatalogPart.cs
- ArrayHelper.cs
- FormCollection.cs
- SystemEvents.cs
- DataSourceExpression.cs
- AutoCompleteStringCollection.cs
- StrokeNodeEnumerator.cs
- bindurihelper.cs
- DataBindingCollectionEditor.cs
- CallId.cs