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
- BamlStream.cs
- ServiceMemoryGates.cs
- InkCollectionBehavior.cs
- Automation.cs
- PointValueSerializer.cs
- ExpressionParser.cs
- HttpPostProtocolImporter.cs
- DefaultTextStoreTextComposition.cs
- InstanceNameConverter.cs
- DependencyPropertyKind.cs
- ADMembershipUser.cs
- SecurityState.cs
- DbReferenceCollection.cs
- DetailsViewInsertEventArgs.cs
- FacetDescription.cs
- DependencyPropertyHelper.cs
- AudienceUriMode.cs
- SortAction.cs
- InteropAutomationProvider.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- CodeSnippetTypeMember.cs
- EventLogLink.cs
- SetStoryboardSpeedRatio.cs
- InstancePersistenceCommandException.cs
- DbProviderManifest.cs
- PrintControllerWithStatusDialog.cs
- EmissiveMaterial.cs
- TransportationConfigurationTypeInstallComponent.cs
- CheckBoxStandardAdapter.cs
- RegexFCD.cs
- CommandField.cs
- TypedReference.cs
- rsa.cs
- ThreadAbortException.cs
- XmlSchemaSimpleTypeUnion.cs
- BuildProviderAppliesToAttribute.cs
- ObjectViewFactory.cs
- CheckBoxRenderer.cs
- exports.cs
- InternalBufferOverflowException.cs
- InternalPolicyElement.cs
- HostingEnvironmentSection.cs
- ResXResourceWriter.cs
- PresentationAppDomainManager.cs
- log.cs
- MenuItemCollection.cs
- DropShadowEffect.cs
- CodeExpressionStatement.cs
- CleanUpVirtualizedItemEventArgs.cs
- wpf-etw.cs
- RichTextBox.cs
- TextParagraphCache.cs
- IndexOutOfRangeException.cs
- XPathNodeInfoAtom.cs
- ConfigurationProperty.cs
- DataServiceProviderMethods.cs
- unsafeIndexingFilterStream.cs
- Vertex.cs
- WebPartManagerInternals.cs
- XmlDocument.cs
- DataGridViewButtonColumn.cs
- DataException.cs
- FollowerQueueCreator.cs
- TemplateBindingExtension.cs
- TreeViewHitTestInfo.cs
- SystemIcmpV4Statistics.cs
- Material.cs
- SiteMapNodeItem.cs
- ContentDisposition.cs
- PropertyDescriptorCollection.cs
- DurableInstanceManager.cs
- BrowserCapabilitiesCompiler.cs
- GeneralTransform3D.cs
- WebPartAuthorizationEventArgs.cs
- ManifestSignedXml.cs
- DataColumnPropertyDescriptor.cs
- Annotation.cs
- ReachPrintTicketSerializerAsync.cs
- FontCacheUtil.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- ColumnCollection.cs
- XslTransformFileEditor.cs
- TextTabProperties.cs
- ProcessHostFactoryHelper.cs
- ResourcesChangeInfo.cs
- COM2ExtendedBrowsingHandler.cs
- PreProcessor.cs
- DbConnectionFactory.cs
- FlowDocumentView.cs
- MenuItemCollection.cs
- OracleConnectionFactory.cs
- BuildTopDownAttribute.cs
- WebRequestModuleElement.cs
- NameSpaceExtractor.cs
- TableItemStyle.cs
- OdbcException.cs
- NonSerializedAttribute.cs
- ActiveXHelper.cs
- Unit.cs
- AssociationType.cs