Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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) { } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SizeF.cs
- ITreeGenerator.cs
- RoleManagerEventArgs.cs
- Overlapped.cs
- HtmlListAdapter.cs
- SafeLibraryHandle.cs
- XmlSchemaElement.cs
- FrameworkReadOnlyPropertyMetadata.cs
- PathGeometry.cs
- COM2IDispatchConverter.cs
- XmlSortKey.cs
- Range.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- iisPickupDirectory.cs
- ValidateNames.cs
- MappingException.cs
- SecurityDescriptor.cs
- FlowDocumentView.cs
- XmlImplementation.cs
- HostedTransportConfigurationBase.cs
- DecryptRequest.cs
- ObjectConverter.cs
- XamlToRtfWriter.cs
- RemotingAttributes.cs
- MultiBinding.cs
- CodeRemoveEventStatement.cs
- DesignerEventService.cs
- Vector3DKeyFrameCollection.cs
- webproxy.cs
- PinnedBufferMemoryStream.cs
- DataViewSetting.cs
- CapabilitiesUse.cs
- WebPartAddingEventArgs.cs
- RadioButtonRenderer.cs
- SignatureResourcePool.cs
- NetStream.cs
- PrefixHandle.cs
- SettingsProperty.cs
- CompoundFileDeflateTransform.cs
- ConfigurationValue.cs
- ListBoxItemAutomationPeer.cs
- Unit.cs
- OperatingSystem.cs
- SEHException.cs
- TypedTableBaseExtensions.cs
- StoreItemCollection.cs
- Stopwatch.cs
- EventDescriptor.cs
- Interlocked.cs
- LongValidator.cs
- HttpBindingExtension.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ScalarConstant.cs
- DbMetaDataFactory.cs
- HandlerBase.cs
- ItemTypeToolStripMenuItem.cs
- HttpProfileGroupBase.cs
- ExtractorMetadata.cs
- EntityKeyElement.cs
- CompositeScriptReferenceEventArgs.cs
- HeaderLabel.cs
- UrlAuthFailureHandler.cs
- ContractListAdapter.cs
- MaterialGroup.cs
- OciLobLocator.cs
- ExpandCollapseProviderWrapper.cs
- ScriptResourceHandler.cs
- TemplateLookupAction.cs
- ItemAutomationPeer.cs
- MemberMaps.cs
- TypeConverters.cs
- NameTable.cs
- TaiwanCalendar.cs
- StorageEntityTypeMapping.cs
- ExtendedTransformFactory.cs
- securitymgrsite.cs
- ItemCheckEvent.cs
- HttpConfigurationContext.cs
- CharacterMetrics.cs
- MetadataArtifactLoaderResource.cs
- CharKeyFrameCollection.cs
- ConfigurationStrings.cs
- AvTrace.cs
- MissingFieldException.cs
- linebase.cs
- RichTextBox.cs
- SymbolMethod.cs
- RadioButtonRenderer.cs
- TextBlockAutomationPeer.cs
- ListManagerBindingsCollection.cs
- MonikerProxyAttribute.cs
- Context.cs
- HttpApplicationFactory.cs
- UriTemplateCompoundPathSegment.cs
- ListDesigner.cs
- TypeToStringValueConverter.cs
- DbCommandDefinition.cs
- JournalEntryStack.cs
- AbandonedMutexException.cs
- CounterCreationData.cs