Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / OutOfMemoryException.cs / 1305376 / 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);
}
[System.Security.SecuritySafeCritical] // auto-generated
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);
}
[System.Security.SecuritySafeCritical] // auto-generated
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
- PlanCompilerUtil.cs
- TypeToken.cs
- ControlValuePropertyAttribute.cs
- ToolStripLocationCancelEventArgs.cs
- assertwrapper.cs
- shaper.cs
- SuppressMergeCheckAttribute.cs
- DataServices.cs
- WrappedIUnknown.cs
- Odbc32.cs
- GPPOINT.cs
- EmbeddedObject.cs
- WindowsAltTab.cs
- BaseWebProxyFinder.cs
- ColumnResult.cs
- InputLanguageEventArgs.cs
- DbConnectionPoolCounters.cs
- InternalDispatchObject.cs
- XmlName.cs
- Single.cs
- ParameterCollection.cs
- UidManager.cs
- AdministrationHelpers.cs
- ProfileGroupSettingsCollection.cs
- ParallelLoopState.cs
- NamespaceMapping.cs
- InternalCache.cs
- HttpCapabilitiesEvaluator.cs
- CacheChildrenQuery.cs
- EpmSyndicationContentDeSerializer.cs
- FileRecordSequence.cs
- ChannelSinkStacks.cs
- _AutoWebProxyScriptHelper.cs
- TextServicesCompartmentContext.cs
- MessagePropertyDescription.cs
- SecurityToken.cs
- DataService.cs
- CodeFieldReferenceExpression.cs
- FlowDocumentPaginator.cs
- ObjectContextServiceProvider.cs
- UIElementParagraph.cs
- OleDbCommand.cs
- CompatibleComparer.cs
- BindingExpression.cs
- ProcessModuleCollection.cs
- ConnectionPoolRegistry.cs
- InstanceLockException.cs
- PropertyEmitter.cs
- MimeTextImporter.cs
- MailSettingsSection.cs
- CodeGroup.cs
- ExecutionEngineException.cs
- PcmConverter.cs
- GridToolTip.cs
- SafeCryptoHandles.cs
- CannotUnloadAppDomainException.cs
- CorrelationService.cs
- InfoCardAsymmetricCrypto.cs
- UIElement3D.cs
- WizardPanelChangingEventArgs.cs
- UnsafeNativeMethodsPenimc.cs
- ConfigXmlCDataSection.cs
- EncryptedXml.cs
- PeerEndPoint.cs
- ThrowHelper.cs
- OverlappedAsyncResult.cs
- Part.cs
- ReferenceEqualityComparer.cs
- xmlsaver.cs
- CoTaskMemSafeHandle.cs
- ContractComponent.cs
- Publisher.cs
- WebHttpSecurityElement.cs
- WSSecurityXXX2005.cs
- SiteMapSection.cs
- AuthenticationService.cs
- webclient.cs
- StorageInfo.cs
- XmlQueryTypeFactory.cs
- WorkflowExecutor.cs
- NameTable.cs
- DataServiceHost.cs
- DecoderFallback.cs
- SafeRightsManagementEnvironmentHandle.cs
- ConnectionPoolManager.cs
- DataGridItemCollection.cs
- NativeMethods.cs
- SafeMILHandleMemoryPressure.cs
- FieldNameLookup.cs
- UnsafeNativeMethods.cs
- CreateUserErrorEventArgs.cs
- ObjectViewListener.cs
- XhtmlBasicCalendarAdapter.cs
- ServiceControllerDesigner.cs
- CalendarTable.cs
- ControlTemplate.cs
- ExecutionContext.cs
- CqlIdentifiers.cs
- EmptyEnumerable.cs
- DbMetaDataColumnNames.cs