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
- DoubleConverter.cs
- UInt32Storage.cs
- TypeBuilderInstantiation.cs
- ColumnMapTranslator.cs
- JournalEntry.cs
- XAMLParseException.cs
- AddInBase.cs
- EventHandlerList.cs
- ParallelTimeline.cs
- SqlUnionizer.cs
- srgsitem.cs
- InvalidPropValue.cs
- TypeGenericEnumerableViewSchema.cs
- RijndaelCryptoServiceProvider.cs
- ModulesEntry.cs
- ValidationRuleCollection.cs
- EraserBehavior.cs
- XmlHierarchyData.cs
- TreeNodeConverter.cs
- ToolStripButton.cs
- UInt16Converter.cs
- Int32CollectionValueSerializer.cs
- Camera.cs
- CustomErrorCollection.cs
- InteropAutomationProvider.cs
- NamedElement.cs
- PeerUnsafeNativeMethods.cs
- WindowsTab.cs
- EventSinkHelperWriter.cs
- BitConverter.cs
- DataGridViewUtilities.cs
- DataRecordObjectView.cs
- DocumentOrderComparer.cs
- MarkupExtensionSerializer.cs
- Fonts.cs
- MemberDescriptor.cs
- WindowsListViewItemCheckBox.cs
- EffectiveValueEntry.cs
- EventEntry.cs
- XmlChildEnumerator.cs
- TimeZoneInfo.cs
- DbExpressionVisitor.cs
- ExpressionBuilderCollection.cs
- CLRBindingWorker.cs
- XmlBufferReader.cs
- MatrixTransform.cs
- PageThemeBuildProvider.cs
- MemberMaps.cs
- FlowDocumentView.cs
- SpeechSeg.cs
- ServiceModelDictionary.cs
- GZipDecoder.cs
- WebControl.cs
- TransformConverter.cs
- DataGridViewColumnCollection.cs
- RuleSet.cs
- HostingEnvironmentWrapper.cs
- DockingAttribute.cs
- PropertySegmentSerializer.cs
- MaskedTextProvider.cs
- TranslateTransform3D.cs
- ObfuscationAttribute.cs
- ReflectionServiceProvider.cs
- DiscardableAttribute.cs
- ReferencedType.cs
- ImagingCache.cs
- DBNull.cs
- XmlMembersMapping.cs
- AttachmentService.cs
- TypeHelper.cs
- SQLSingle.cs
- SendActivityDesignerTheme.cs
- SoundPlayer.cs
- SmiSettersStream.cs
- UIPermission.cs
- XmlEnumAttribute.cs
- X509CertificateInitiatorServiceCredential.cs
- COM2ExtendedTypeConverter.cs
- DropDownButton.cs
- _NTAuthentication.cs
- Single.cs
- XsltException.cs
- AllowedAudienceUriElement.cs
- ClaimComparer.cs
- Int32KeyFrameCollection.cs
- TreeNodeStyle.cs
- NamespaceEmitter.cs
- WindowsBrush.cs
- DataControlFieldHeaderCell.cs
- DataGridViewBindingCompleteEventArgs.cs
- BitmapEffectRenderDataResource.cs
- SubclassTypeValidator.cs
- CustomActivityDesigner.cs
- SessionStateItemCollection.cs
- TabControl.cs
- QueueProcessor.cs
- HttpConfigurationSystem.cs
- WorkflowOperationInvoker.cs
- SharedRuntimeState.cs
- OuterGlowBitmapEffect.cs