Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / InsufficientMemoryException.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GeometryModel3D.cs
- AnonymousIdentificationModule.cs
- CompositeKey.cs
- Hashtable.cs
- SerializationFieldInfo.cs
- XmlCharCheckingReader.cs
- ToolStripDropDownClosingEventArgs.cs
- Listbox.cs
- DockingAttribute.cs
- LambdaCompiler.Generated.cs
- Logging.cs
- IPAddressCollection.cs
- ITextView.cs
- StringUtil.cs
- BuildResultCache.cs
- SessionEndingEventArgs.cs
- DataStreamFromComStream.cs
- IImplicitResourceProvider.cs
- ExtendedPropertiesHandler.cs
- RefExpr.cs
- TreeNodeBinding.cs
- EmptyEnumerator.cs
- SystemException.cs
- SqlDataSourceSelectingEventArgs.cs
- SchemaElementLookUpTableEnumerator.cs
- SafeNativeMethods.cs
- EndpointIdentity.cs
- IisTraceWebEventProvider.cs
- DataServiceKeyAttribute.cs
- BitmapMetadata.cs
- XmlAttributes.cs
- PersistChildrenAttribute.cs
- ActivityInterfaces.cs
- ObjectIDGenerator.cs
- WinFormsUtils.cs
- UserControlParser.cs
- Pkcs7Recipient.cs
- ServiceOperationDetailViewControl.cs
- EraserBehavior.cs
- ResourcesBuildProvider.cs
- GeometryValueSerializer.cs
- PrintSystemException.cs
- DataGridSortCommandEventArgs.cs
- HtmlForm.cs
- DataColumnMapping.cs
- SplitterCancelEvent.cs
- MainMenu.cs
- HierarchicalDataBoundControl.cs
- UInt64Converter.cs
- SubordinateTransaction.cs
- SafeMILHandle.cs
- HwndMouseInputProvider.cs
- CodeTypeOfExpression.cs
- SystemIPInterfaceProperties.cs
- DependencyObjectType.cs
- ApplicationFileParser.cs
- SR.cs
- XmlArrayItemAttributes.cs
- HtmlCommandAdapter.cs
- PropertyExpression.cs
- WmlCalendarAdapter.cs
- ISAPIWorkerRequest.cs
- DelegatingConfigHost.cs
- RNGCryptoServiceProvider.cs
- KeyGesture.cs
- ValueCollectionParameterReader.cs
- WindowsImpersonationContext.cs
- ContentValidator.cs
- MatrixTransform3D.cs
- HybridDictionary.cs
- SamlAction.cs
- ButtonBase.cs
- ContextBase.cs
- ConfigurationManagerHelper.cs
- LightweightEntityWrapper.cs
- DbConnectionFactory.cs
- SynchronizationContextHelper.cs
- Rotation3D.cs
- SafeHandles.cs
- CapabilitiesRule.cs
- PrintDialog.cs
- ColorMatrix.cs
- ObjectDataProvider.cs
- StrongNameIdentityPermission.cs
- BamlResourceSerializer.cs
- FillRuleValidation.cs
- AppendHelper.cs
- FilterElement.cs
- DataSourceXmlAttributeAttribute.cs
- SqlDataSourceDesigner.cs
- Ray3DHitTestResult.cs
- SafeBitVector32.cs
- StoreContentChangedEventArgs.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- ExtentKey.cs
- RowSpanVector.cs
- Annotation.cs
- RecordConverter.cs
- BinHexEncoder.cs
- DataViewSetting.cs