Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / clr / src / BCL / System / InsufficientMemoryException.cs / 1 / InsufficientMemoryException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: InsufficientMemoryException ** ** ** Purpose: The exception class for running out of memory ** but most likely in a non-fatal way that shouldn't ** be affected by escalation policy. Use this for cases ** like MemoryFailPoint or a TryAllocate method, where you ** expect OOM's with no shared state corruption and you ** want to recover from these errors. ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Serialization; [Serializable()] public sealed class InsufficientMemoryException : OutOfMemoryException { public InsufficientMemoryException() : base(GetMessageFromNativeResources(ExceptionMessageKind.OutOfMemory)) { SetErrorCode(__HResults.COR_E_INSUFFICIENTMEMORY); } public InsufficientMemoryException(String message) : base(message) { SetErrorCode(__HResults.COR_E_INSUFFICIENTMEMORY); } public InsufficientMemoryException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_INSUFFICIENTMEMORY); } private InsufficientMemoryException(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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CrossContextChannel.cs
- ProcessHostConfigUtils.cs
- NTAccount.cs
- SplitterEvent.cs
- MessageAction.cs
- shaperfactory.cs
- OutputCacheProfile.cs
- HwndHost.cs
- OdbcTransaction.cs
- TableDetailsRow.cs
- NamedObject.cs
- CodeTypeParameterCollection.cs
- dataSvcMapFileLoader.cs
- SiteMembershipCondition.cs
- InlineUIContainer.cs
- dataobject.cs
- EasingFunctionBase.cs
- CreateUserWizardStep.cs
- CompilerLocalReference.cs
- Classification.cs
- PersianCalendar.cs
- SharedDp.cs
- StructuredType.cs
- PackWebResponse.cs
- GenerateScriptTypeAttribute.cs
- ObjectDataSourceFilteringEventArgs.cs
- baseshape.cs
- Duration.cs
- PointValueSerializer.cs
- SplitterCancelEvent.cs
- AnnotationAdorner.cs
- Font.cs
- Stack.cs
- CorePropertiesFilter.cs
- HotSpotCollection.cs
- SessionEndedEventArgs.cs
- ItemType.cs
- RequestQueue.cs
- SqlBulkCopyColumnMappingCollection.cs
- EditingCoordinator.cs
- RowSpanVector.cs
- Menu.cs
- DragCompletedEventArgs.cs
- ConfigXmlComment.cs
- AlphabeticalEnumConverter.cs
- DataBindingHandlerAttribute.cs
- ZipIOExtraFieldPaddingElement.cs
- DbMetaDataFactory.cs
- AsmxEndpointPickerExtension.cs
- processwaithandle.cs
- RelatedView.cs
- ModelUtilities.cs
- MailBnfHelper.cs
- FieldNameLookup.cs
- FixedPage.cs
- XmlSerializableWriter.cs
- SQLInt32.cs
- SequenceFullException.cs
- DetailsViewUpdatedEventArgs.cs
- IndicCharClassifier.cs
- XmlUnspecifiedAttribute.cs
- AppModelKnownContentFactory.cs
- MemberAccessException.cs
- TransformDescriptor.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- HashMembershipCondition.cs
- GrammarBuilderPhrase.cs
- SupportingTokenDuplexChannel.cs
- PointConverter.cs
- ProcessManager.cs
- CultureTableRecord.cs
- CompatibleIComparer.cs
- GenericPrincipal.cs
- QueryOptionExpression.cs
- DescendantQuery.cs
- EntityExpressionVisitor.cs
- TransformProviderWrapper.cs
- HwndHost.cs
- embossbitmapeffect.cs
- ProcessHostConfigUtils.cs
- CollectionContainer.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ResourceWriter.cs
- securitycriticaldataClass.cs
- CompositeFontFamily.cs
- RoleServiceManager.cs
- RawMouseInputReport.cs
- StringFunctions.cs
- CultureInfo.cs
- TypeDescriptor.cs
- TextRangeEditTables.cs
- Validator.cs
- CancellationHandler.cs
- Currency.cs
- Currency.cs
- CharUnicodeInfo.cs
- BooleanAnimationBase.cs
- TransactedBatchingBehavior.cs
- XsltLoader.cs
- PenContext.cs