Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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) { } } } // 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
- XmlSchemaAnyAttribute.cs
- InputLanguageEventArgs.cs
- DbConnectionClosed.cs
- TypedTableBase.cs
- EntityDataSourceStatementEditorForm.cs
- DetailsViewRowCollection.cs
- ConfigXmlAttribute.cs
- BasePropertyDescriptor.cs
- DataStreams.cs
- HwndSource.cs
- CustomPopupPlacement.cs
- StorageRoot.cs
- CollectionsUtil.cs
- TreeViewCancelEvent.cs
- StreamGeometry.cs
- WebEventTraceProvider.cs
- CacheMemory.cs
- XmlComplianceUtil.cs
- BitmapEffectGroup.cs
- JpegBitmapDecoder.cs
- WebPartMenu.cs
- SiteMapNodeItem.cs
- MediaEntryAttribute.cs
- CacheEntry.cs
- UnsafeNativeMethodsCLR.cs
- StyleModeStack.cs
- AttachedAnnotationChangedEventArgs.cs
- Message.cs
- AdornedElementPlaceholder.cs
- InputScopeNameConverter.cs
- Panel.cs
- FrameworkElement.cs
- MaskedTextBoxTextEditorDropDown.cs
- PersonalizationStateInfo.cs
- DataRowChangeEvent.cs
- SecurityKeyIdentifier.cs
- SetUserPreferenceRequest.cs
- InteropEnvironment.cs
- BindingNavigator.cs
- COM2Properties.cs
- DateTimeConverter2.cs
- SynchronizedPool.cs
- ConditionalBranch.cs
- GlyphCollection.cs
- ItemDragEvent.cs
- ByteStorage.cs
- ToolStripProgressBar.cs
- FormViewDeleteEventArgs.cs
- CopyEncoder.cs
- XmlSerializationReader.cs
- IriParsingElement.cs
- BinaryConverter.cs
- StateMachineSubscription.cs
- ElementNotEnabledException.cs
- IntSecurity.cs
- HashRepartitionStream.cs
- ChannelCredentials.cs
- DefaultEvaluationContext.cs
- XmlWriter.cs
- RenderOptions.cs
- IdentitySection.cs
- DetailsViewDeleteEventArgs.cs
- FreezableOperations.cs
- UnsignedPublishLicense.cs
- ReliableChannelListener.cs
- CryptoConfig.cs
- WebBrowser.cs
- DataGridViewTextBoxEditingControl.cs
- QueryOutputWriter.cs
- FormViewInsertedEventArgs.cs
- QilNode.cs
- TranslateTransform.cs
- AuthenticationSchemesHelper.cs
- DesignerCapabilities.cs
- TypeUtil.cs
- BuildManager.cs
- AtlasWeb.Designer.cs
- StrokeNode.cs
- DataGridParentRows.cs
- CompiledRegexRunnerFactory.cs
- Button.cs
- XmlWrappingWriter.cs
- XmlSchemaAny.cs
- ProcessProtocolHandler.cs
- CredentialCache.cs
- DoubleConverter.cs
- shaperfactoryquerycacheentry.cs
- Filter.cs
- SafePEFileHandle.cs
- RepeaterDataBoundAdapter.cs
- XmlSerializerObjectSerializer.cs
- Glyph.cs
- BindingOperations.cs
- PartitionerStatic.cs
- IImplicitResourceProvider.cs
- InputMethodStateTypeInfo.cs
- TableItemProviderWrapper.cs
- TokenBasedSet.cs
- ReadOnlyAttribute.cs
- RuleSettings.cs