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
- SafeNativeMethods.cs
- StreamGeometry.cs
- XmlUrlResolver.cs
- WorkflowServiceHostFactory.cs
- JsonQNameDataContract.cs
- VBCodeProvider.cs
- GradientStop.cs
- XmlMapping.cs
- IndexedString.cs
- HMAC.cs
- StateMachine.cs
- HttpServerUtilityWrapper.cs
- ForceCopyBuildProvider.cs
- TagMapCollection.cs
- MILUtilities.cs
- VirtualizedItemPattern.cs
- SettingsBase.cs
- OleStrCAMarshaler.cs
- DirectoryObjectSecurity.cs
- WebBrowserNavigatedEventHandler.cs
- assertwrapper.cs
- WindowsSecurityTokenAuthenticator.cs
- ToolStripOverflowButton.cs
- WeakHashtable.cs
- QueryLifecycle.cs
- TabControl.cs
- SqlTriggerAttribute.cs
- AlphaSortedEnumConverter.cs
- PackageRelationshipCollection.cs
- XsdDuration.cs
- ConstantSlot.cs
- FormParameter.cs
- SqlDataSourceEnumerator.cs
- ButtonColumn.cs
- XmlSchemaAttributeGroupRef.cs
- XsltFunctions.cs
- SchemaImporterExtensionsSection.cs
- ClientConfigPaths.cs
- hresults.cs
- CodeSnippetTypeMember.cs
- ColumnTypeConverter.cs
- RawTextInputReport.cs
- WebEvents.cs
- TraceSection.cs
- _UriSyntax.cs
- Rect3DConverter.cs
- ExpressionBuilder.cs
- SessionStateModule.cs
- MatrixStack.cs
- DropShadowBitmapEffect.cs
- PaintEvent.cs
- UrlAuthorizationModule.cs
- SqlFacetAttribute.cs
- InstanceHandleReference.cs
- StringResourceManager.cs
- ChannelManagerBase.cs
- BitmapEffectOutputConnector.cs
- DataSourceProvider.cs
- ProtocolViolationException.cs
- InkCanvasSelection.cs
- NonSerializedAttribute.cs
- Trigger.cs
- ResourcesGenerator.cs
- XmlUTF8TextReader.cs
- BinaryObjectWriter.cs
- EndEvent.cs
- Annotation.cs
- HtmlMeta.cs
- SapiRecoContext.cs
- PersonalizationProviderHelper.cs
- MultiByteCodec.cs
- DataGridViewCellCollection.cs
- SymDocumentType.cs
- StaticTextPointer.cs
- LineGeometry.cs
- FormClosedEvent.cs
- Delegate.cs
- XhtmlCssHandler.cs
- HierarchicalDataSourceControl.cs
- MdiWindowListItemConverter.cs
- StructureChangedEventArgs.cs
- ColumnWidthChangedEvent.cs
- EventProviderTraceListener.cs
- loginstatus.cs
- PageContentAsyncResult.cs
- PeerName.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- ButtonBase.cs
- SourceInterpreter.cs
- EnlistmentTraceIdentifier.cs
- AttributeQuery.cs
- Switch.cs
- webeventbuffer.cs
- FormViewInsertedEventArgs.cs
- PartitionedStream.cs
- CodeVariableReferenceExpression.cs
- EntityDataSourceContextCreatedEventArgs.cs
- NameTable.cs
- RelatedView.cs
- ReadContentAsBinaryHelper.cs