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
- LinkedResource.cs
- InternalUserCancelledException.cs
- FactoryMaker.cs
- HtmlMeta.cs
- URL.cs
- BrowserCapabilitiesFactory.cs
- RadioButtonFlatAdapter.cs
- SQLResource.cs
- StylusPointProperties.cs
- ImageList.cs
- PropertyCondition.cs
- Normalization.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- VectorValueSerializer.cs
- RecordsAffectedEventArgs.cs
- _FtpDataStream.cs
- DataContractSet.cs
- CommonObjectSecurity.cs
- UrlPath.cs
- IDispatchConstantAttribute.cs
- Stackframe.cs
- PageAdapter.cs
- LabelLiteral.cs
- BaseHashHelper.cs
- FormatConvertedBitmap.cs
- SecurityTokenRequirement.cs
- FlowPosition.cs
- WebFormsRootDesigner.cs
- MbpInfo.cs
- QilLoop.cs
- TextDecorationUnitValidation.cs
- CheckBox.cs
- DataReceivedEventArgs.cs
- RelationshipDetailsCollection.cs
- PseudoWebRequest.cs
- Pkcs9Attribute.cs
- InvalidPropValue.cs
- RowToFieldTransformer.cs
- SwitchLevelAttribute.cs
- TimeEnumHelper.cs
- ButtonField.cs
- CachedTypeface.cs
- PeerCollaboration.cs
- CompressedStack.cs
- MexNamedPipeBindingCollectionElement.cs
- ProcessModelInfo.cs
- DataGridLinkButton.cs
- Ref.cs
- SqlDataSourceView.cs
- BooleanProjectedSlot.cs
- QueryAsyncResult.cs
- CodeCompileUnit.cs
- Bezier.cs
- ConnectionManagementElement.cs
- EnumMember.cs
- NameValueFileSectionHandler.cs
- Int32CollectionConverter.cs
- ProcessHostConfigUtils.cs
- GroupedContextMenuStrip.cs
- ServerIdentity.cs
- MenuAutomationPeer.cs
- SpellerError.cs
- EpmCustomContentWriterNodeData.cs
- StatusBarItem.cs
- NullableBoolConverter.cs
- BitmapFrameDecode.cs
- Models.cs
- TopClause.cs
- TreeNodeCollection.cs
- RawAppCommandInputReport.cs
- dataobject.cs
- IPEndPoint.cs
- _PooledStream.cs
- BroadcastEventHelper.cs
- XmlDocumentType.cs
- SqlBulkCopyColumnMappingCollection.cs
- EntityDataSourceDesigner.cs
- StringConcat.cs
- StringBlob.cs
- EnumerableRowCollection.cs
- SoapFault.cs
- ComponentConverter.cs
- EventDescriptor.cs
- Operand.cs
- SafeRightsManagementPubHandle.cs
- XsltContext.cs
- ListItemCollection.cs
- XPathBuilder.cs
- GraphicsState.cs
- CorrelationTokenInvalidatedHandler.cs
- XmlWriterTraceListener.cs
- IpcServerChannel.cs
- Attachment.cs
- BindingParameterCollection.cs
- MembershipSection.cs
- EntityConnectionStringBuilderItem.cs
- HttpWebResponse.cs
- COM2ExtendedTypeConverter.cs
- SecurityPermission.cs
- GeometryHitTestResult.cs