Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // // ==--== /*============================================================================== ** ** 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SafeNativeMethods.cs
- ProviderCollection.cs
- ReadOnlyHierarchicalDataSourceView.cs
- RepeatButton.cs
- CultureTableRecord.cs
- SqlMetaData.cs
- RenamedEventArgs.cs
- BaseTreeIterator.cs
- complextypematerializer.cs
- StretchValidation.cs
- Win32.cs
- __FastResourceComparer.cs
- SchemaImporter.cs
- ClientTargetSection.cs
- SegmentInfo.cs
- RefreshPropertiesAttribute.cs
- MobileErrorInfo.cs
- AlternateView.cs
- Vector3DConverter.cs
- _HelperAsyncResults.cs
- SuppressMessageAttribute.cs
- TextFormatterHost.cs
- EnlistmentState.cs
- ExpressionNode.cs
- Sql8ConformanceChecker.cs
- ServiceInfo.cs
- RequestTimeoutManager.cs
- MonitorWrapper.cs
- MsmqIntegrationProcessProtocolHandler.cs
- StreamGeometryContext.cs
- GridViewRow.cs
- PKCS1MaskGenerationMethod.cs
- MachineKeySection.cs
- DecimalAnimationBase.cs
- Propagator.cs
- InputLangChangeEvent.cs
- SafeRegistryHandle.cs
- DLinqTableProvider.cs
- DynamicControl.cs
- HandlerBase.cs
- BaseConfigurationRecord.cs
- ViewManager.cs
- Fonts.cs
- LicenseContext.cs
- PropertyInfoSet.cs
- XmlSchemaIdentityConstraint.cs
- httpstaticobjectscollection.cs
- DetailsViewRow.cs
- SystemResourceKey.cs
- GenericTextProperties.cs
- HelpOperationInvoker.cs
- GrammarBuilder.cs
- AutomationElement.cs
- TableLayoutRowStyleCollection.cs
- IncrementalHitTester.cs
- FormsAuthenticationEventArgs.cs
- TypeConverter.cs
- WorkflowNamespace.cs
- XmlArrayAttribute.cs
- RtfFormatStack.cs
- RenderingBiasValidation.cs
- TransactionScopeDesigner.cs
- Collection.cs
- SafeFindHandle.cs
- PageRequestManager.cs
- SpeakProgressEventArgs.cs
- DiagnosticsConfiguration.cs
- XmlParser.cs
- SafeRightsManagementHandle.cs
- OracleSqlParser.cs
- AngleUtil.cs
- UrlMappingsSection.cs
- ListView.cs
- HttpCacheVary.cs
- Compiler.cs
- DesignerSerializationOptionsAttribute.cs
- HostedImpersonationContext.cs
- AnimationClockResource.cs
- WebPartMenuStyle.cs
- PersonalizationAdministration.cs
- AppDomainShutdownMonitor.cs
- Rule.cs
- DbgUtil.cs
- ResetableIterator.cs
- TagNameToTypeMapper.cs
- DatePickerAutomationPeer.cs
- NetTcpSection.cs
- DataGridColumn.cs
- CheckBox.cs
- BitHelper.cs
- EncoderExceptionFallback.cs
- WpfSharedXamlSchemaContext.cs
- GradientBrush.cs
- CollectionsUtil.cs
- WindowsProgressbar.cs
- BookmarkManager.cs
- Operand.cs
- WebEvents.cs
- Win32SafeHandles.cs
- UserMapPath.cs