Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / OutOfMemoryException.cs / 1 / OutOfMemoryException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: OutOfMemoryException ** ** ** Purpose: The exception class for OOM. ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable()] public class OutOfMemoryException : SystemException { public OutOfMemoryException() : base(GetMessageFromNativeResources(ExceptionMessageKind.OutOfMemory)) { SetErrorCode(__HResults.COR_E_OUTOFMEMORY); } public OutOfMemoryException(String message) : base(message) { SetErrorCode(__HResults.COR_E_OUTOFMEMORY); } public OutOfMemoryException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_OUTOFMEMORY); } protected OutOfMemoryException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- IDispatchConstantAttribute.cs
- NavigationWindow.cs
- ExpandCollapsePattern.cs
- TextEffectCollection.cs
- ClientCultureInfo.cs
- WebPageTraceListener.cs
- ToolStripStatusLabel.cs
- LineInfo.cs
- InkCanvasAutomationPeer.cs
- WindowsGraphics2.cs
- FrameworkElementFactoryMarkupObject.cs
- SqlGatherProducedAliases.cs
- DeploymentSectionCache.cs
- ElementsClipboardData.cs
- TableLayoutPanelDesigner.cs
- XmlQueryRuntime.cs
- ComponentResourceKey.cs
- UserPreferenceChangedEventArgs.cs
- SchemaElement.cs
- Bits.cs
- PenCursorManager.cs
- CommandPlan.cs
- ContentPosition.cs
- DataGrid.cs
- SecurityPolicySection.cs
- ObjectDataSourceEventArgs.cs
- TraceEventCache.cs
- ProjectionPath.cs
- OfTypeExpression.cs
- TabControlEvent.cs
- HtmlInputPassword.cs
- SecurityPolicySection.cs
- CompressEmulationStream.cs
- StreamHelper.cs
- TickBar.cs
- KnownTypes.cs
- Types.cs
- WindowsFormsLinkLabel.cs
- IsolatedStorageFilePermission.cs
- SystemIPv6InterfaceProperties.cs
- FileDialog.cs
- MetadataCacheItem.cs
- QueryableDataSource.cs
- SqlDataReader.cs
- EdmItemCollection.OcAssemblyCache.cs
- ConfigUtil.cs
- EntityProviderFactory.cs
- StreamWithDictionary.cs
- HyperLinkStyle.cs
- PersonalizationState.cs
- EncodingInfo.cs
- RotateTransform.cs
- DoubleCollectionValueSerializer.cs
- SHA1CryptoServiceProvider.cs
- __ComObject.cs
- XmlName.cs
- MessagePartProtectionMode.cs
- AuthenticationModuleElement.cs
- ToolBarTray.cs
- ItemsPresenter.cs
- ActiveXHost.cs
- UrlAuthFailedErrorFormatter.cs
- OptionalColumn.cs
- ExtractorMetadata.cs
- FrameworkContentElement.cs
- RectAnimationClockResource.cs
- RestHandlerFactory.cs
- assertwrapper.cs
- SiteMapDataSourceView.cs
- SQLMembershipProvider.cs
- ApplicationCommands.cs
- DataFieldConverter.cs
- GetIsBrowserClientRequest.cs
- IFlowDocumentViewer.cs
- CompilationUnit.cs
- ECDiffieHellmanCng.cs
- DataGridColumnHeaderAutomationPeer.cs
- WeakReferenceEnumerator.cs
- DoubleLink.cs
- PerspectiveCamera.cs
- HiddenFieldPageStatePersister.cs
- CheckableControlBaseAdapter.cs
- ProfileGroupSettingsCollection.cs
- CreateUserErrorEventArgs.cs
- RoutedEvent.cs
- DBConnectionString.cs
- StreamingContext.cs
- AttachmentService.cs
- EraserBehavior.cs
- ValidationRule.cs
- XamlSerializationHelper.cs
- AmbientLight.cs
- InternalSafeNativeMethods.cs
- OperationDescription.cs
- InstanceOwner.cs
- Ticks.cs
- ObjectDataSource.cs
- UInt16Storage.cs
- SqlException.cs
- InvalidFilterCriteriaException.cs