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
- SafeCryptoHandles.cs
- FastEncoder.cs
- SessionState.cs
- ArrayElementGridEntry.cs
- SslStream.cs
- AnimationStorage.cs
- SqlLiftIndependentRowExpressions.cs
- FloaterParagraph.cs
- Cursors.cs
- MessageSecurityTokenVersion.cs
- SetIndexBinder.cs
- FunctionNode.cs
- XmlValidatingReaderImpl.cs
- TrackingMemoryStream.cs
- DataGridViewCellStateChangedEventArgs.cs
- GeometryHitTestParameters.cs
- RoleService.cs
- SimpleHandlerBuildProvider.cs
- SecurityRuntime.cs
- XPathParser.cs
- RoleService.cs
- SelectionService.cs
- XmlSchemaSimpleTypeUnion.cs
- ListViewSelectEventArgs.cs
- XPathBinder.cs
- MultiTrigger.cs
- AuthenticationModuleElement.cs
- PolicyValidator.cs
- ConstructorBuilder.cs
- TextElementEnumerator.cs
- HtmlTableCell.cs
- Invariant.cs
- XmlDataDocument.cs
- ExpressionServices.cs
- IdentityManager.cs
- HwndHost.cs
- SHA384Managed.cs
- MouseButtonEventArgs.cs
- LongTypeConverter.cs
- ParameterBuilder.cs
- PrtCap_Public.cs
- entityreference_tresulttype.cs
- EntityContainerEntitySet.cs
- Control.cs
- TableLayoutColumnStyleCollection.cs
- ContractUtils.cs
- GlyphingCache.cs
- _AcceptOverlappedAsyncResult.cs
- SectionInput.cs
- XmlAttributeCache.cs
- HashMembershipCondition.cs
- MultilineStringConverter.cs
- VectorAnimationBase.cs
- uribuilder.cs
- GridViewDeleteEventArgs.cs
- InteropAutomationProvider.cs
- HebrewCalendar.cs
- OpCopier.cs
- DrawingState.cs
- SqlDataReader.cs
- ReflectionTypeLoadException.cs
- ObjectQueryProvider.cs
- PageSettings.cs
- CookielessHelper.cs
- TripleDESCryptoServiceProvider.cs
- BasicCellRelation.cs
- InternalPermissions.cs
- PageSetupDialog.cs
- CustomAttributeFormatException.cs
- SQLDateTimeStorage.cs
- PageBuildProvider.cs
- KeysConverter.cs
- ObjectItemLoadingSessionData.cs
- MemoryRecordBuffer.cs
- MaterialGroup.cs
- CapabilitiesUse.cs
- TypeConvertions.cs
- Crypto.cs
- SafeRegistryHandle.cs
- Canvas.cs
- WrappedDispatcherException.cs
- Pen.cs
- EventListener.cs
- IgnorePropertiesAttribute.cs
- LoadedOrUnloadedOperation.cs
- Currency.cs
- _AuthenticationState.cs
- SingleAnimationUsingKeyFrames.cs
- TdsParserSafeHandles.cs
- Repeater.cs
- XmlSignificantWhitespace.cs
- SemanticKeyElement.cs
- RijndaelCryptoServiceProvider.cs
- ClientSettings.cs
- ServiceDescription.cs
- ADMembershipProvider.cs
- EventBuilder.cs
- SqlProvider.cs
- ViewGenResults.cs
- UIElementPropertyUndoUnit.cs