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
- CommandField.cs
- NoResizeSelectionBorderGlyph.cs
- PreProcessor.cs
- ColumnClickEvent.cs
- OrderedDictionaryStateHelper.cs
- Help.cs
- SpeakInfo.cs
- Label.cs
- Atom10FormatterFactory.cs
- SslSecurityTokenParameters.cs
- SettingsAttributes.cs
- BooleanAnimationUsingKeyFrames.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- GroupStyle.cs
- Brush.cs
- GetCryptoTransformRequest.cs
- SafeFindHandle.cs
- SourceItem.cs
- HostnameComparisonMode.cs
- base64Transforms.cs
- ConfigurationElement.cs
- ReferenceService.cs
- DomainUpDown.cs
- OutputWindow.cs
- Typeface.cs
- VariableReference.cs
- ModelPropertyImpl.cs
- TabRenderer.cs
- NativeObjectSecurity.cs
- Line.cs
- HostingEnvironment.cs
- OracleLob.cs
- RootCodeDomSerializer.cs
- SqlBooleanizer.cs
- PrimitiveCodeDomSerializer.cs
- BitmapEffectrendercontext.cs
- MimeBasePart.cs
- ComplexPropertyEntry.cs
- WebPartConnectVerb.cs
- HtmlHistory.cs
- XmlHierarchicalDataSourceView.cs
- TableItemStyle.cs
- StreamAsIStream.cs
- TextBlockAutomationPeer.cs
- LicenseContext.cs
- Button.cs
- ImportedPolicyConversionContext.cs
- FontWeights.cs
- SymbolMethod.cs
- ConvertTextFrag.cs
- ConditionalDesigner.cs
- StandardOleMarshalObject.cs
- EventNotify.cs
- BookmarkScopeInfo.cs
- PriorityQueue.cs
- NativeMethods.cs
- FormsAuthenticationModule.cs
- KeyFrames.cs
- ListViewCancelEventArgs.cs
- SizeF.cs
- ViewSimplifier.cs
- DataFormat.cs
- XPathParser.cs
- SqlConnectionHelper.cs
- ProbeDuplexCD1AsyncResult.cs
- OptionalRstParameters.cs
- ImageAnimator.cs
- AdPostCacheSubstitution.cs
- SoapReflectionImporter.cs
- Unit.cs
- List.cs
- SortedList.cs
- BindingList.cs
- activationcontext.cs
- ConfigurationStrings.cs
- ToolStripSettings.cs
- VolatileResourceManager.cs
- ErrorHandler.cs
- ListViewTableCell.cs
- RowSpanVector.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- XsltException.cs
- SourceLineInfo.cs
- XmlChildEnumerator.cs
- PersonalizationProviderCollection.cs
- TransformPatternIdentifiers.cs
- RowsCopiedEventArgs.cs
- ImageInfo.cs
- OdbcConnectionString.cs
- FlowPosition.cs
- ZeroOpNode.cs
- ParameterCollection.cs
- XmlSerializationWriter.cs
- KeyInterop.cs
- OpCopier.cs
- DataGridItemAutomationPeer.cs
- ReceiveDesigner.xaml.cs
- HideDisabledControlAdapter.cs
- EntityConnectionStringBuilder.cs
- TypeUnloadedException.cs