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
- DeploymentSection.cs
- SmtpNtlmAuthenticationModule.cs
- OleDbCommandBuilder.cs
- DataMisalignedException.cs
- FocusManager.cs
- UnwrappedTypesXmlSerializerManager.cs
- ModelItemDictionary.cs
- cookiecollection.cs
- AssemblyName.cs
- DataGridViewDataErrorEventArgs.cs
- ContentPresenter.cs
- TypeConverterAttribute.cs
- SafePEFileHandle.cs
- Button.cs
- HttpResponseInternalWrapper.cs
- EmptyEnumerable.cs
- OracleParameterCollection.cs
- ZipFileInfo.cs
- WebPartExportVerb.cs
- UiaCoreTypesApi.cs
- Hex.cs
- XmlSchemaAll.cs
- TokenFactoryCredential.cs
- MaterialGroup.cs
- CustomTypeDescriptor.cs
- TreeViewImageKeyConverter.cs
- InputProcessorProfilesLoader.cs
- GridViewColumn.cs
- SQLDateTimeStorage.cs
- StringWriter.cs
- ContextTokenTypeConverter.cs
- CompatibleComparer.cs
- ECDsa.cs
- TreeNodeBindingCollection.cs
- Tracking.cs
- GeneralTransformCollection.cs
- EventDriven.cs
- ActivityMarkupSerializer.cs
- OptimisticConcurrencyException.cs
- ZoneLinkButton.cs
- VisualCollection.cs
- IOException.cs
- EntityDataSourceContextCreatedEventArgs.cs
- XmlNamespaceMappingCollection.cs
- DefaultValidator.cs
- AuthenticationConfig.cs
- LinkedList.cs
- XsltConvert.cs
- TimelineGroup.cs
- RoleManagerSection.cs
- CodeMethodInvokeExpression.cs
- DesignOnlyAttribute.cs
- BaseUriHelper.cs
- PageStatePersister.cs
- XmlTypeAttribute.cs
- SoapDocumentMethodAttribute.cs
- DataListGeneralPage.cs
- DrawingContextWalker.cs
- CodeDOMUtility.cs
- TemplateBamlTreeBuilder.cs
- PriorityBindingExpression.cs
- MarkerProperties.cs
- BitmapScalingModeValidation.cs
- StandardMenuStripVerb.cs
- COMException.cs
- SmtpAuthenticationManager.cs
- Missing.cs
- TraceData.cs
- SerializationObjectManager.cs
- FontEmbeddingManager.cs
- DataListCommandEventArgs.cs
- TextSelectionProcessor.cs
- controlskin.cs
- ConnectionInterfaceCollection.cs
- FastPropertyAccessor.cs
- ResourceProperty.cs
- DataListItemCollection.cs
- HtmlInputFile.cs
- EntityDataSourceContainerNameConverter.cs
- DbExpressionBuilder.cs
- DataGridViewComboBoxColumn.cs
- NamedPipeAppDomainProtocolHandler.cs
- PeerResolverBindingElement.cs
- CreateParams.cs
- TrustManager.cs
- ListView.cs
- ProviderMetadata.cs
- SmiConnection.cs
- HttpRuntime.cs
- arclist.cs
- DynamicVirtualDiscoSearcher.cs
- SqlHelper.cs
- ExclusiveTcpListener.cs
- ProcessInfo.cs
- ExpressionPrefixAttribute.cs
- MetadataArtifactLoaderFile.cs
- TextEditorParagraphs.cs
- XmlSchemaInfo.cs
- MetadataCacheItem.cs
- _emptywebproxy.cs