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
- CodeDelegateCreateExpression.cs
- ConnectionConsumerAttribute.cs
- ProcessHost.cs
- BaseValidatorDesigner.cs
- EnumerableWrapperWeakToStrong.cs
- X509Utils.cs
- UnauthorizedAccessException.cs
- LinearQuaternionKeyFrame.cs
- FormsAuthentication.cs
- panel.cs
- HostExecutionContextManager.cs
- FixedSOMImage.cs
- WebPart.cs
- BamlVersionHeader.cs
- SqlSupersetValidator.cs
- XmlSchemaAttributeGroup.cs
- CodeFieldReferenceExpression.cs
- ImageClickEventArgs.cs
- SQlBooleanStorage.cs
- ExpressionPrinter.cs
- XmlAtomicValue.cs
- IndexingContentUnit.cs
- Brushes.cs
- UITypeEditor.cs
- DesignerView.xaml.cs
- ExpandableObjectConverter.cs
- ClassHandlersStore.cs
- DataGridViewDataErrorEventArgs.cs
- UnsafeNativeMethods.cs
- BufferedReadStream.cs
- ConfigXmlComment.cs
- SiteMapNode.cs
- TextSelectionProcessor.cs
- XmlSchemaAny.cs
- ButtonStandardAdapter.cs
- Pts.cs
- NamedPipeWorkerProcess.cs
- TableStyle.cs
- ExtensionSimplifierMarkupObject.cs
- _SslState.cs
- ComNativeDescriptor.cs
- BookmarkScopeHandle.cs
- EditCommandColumn.cs
- ClockController.cs
- OracleFactory.cs
- XmlHierarchicalDataSourceView.cs
- HTMLTextWriter.cs
- DesignerOptionService.cs
- SymbolMethod.cs
- Compensation.cs
- StringFreezingAttribute.cs
- CmsInterop.cs
- TypeDescriptorContext.cs
- ConfigErrorGlyph.cs
- UIElementParagraph.cs
- TextParaClient.cs
- HtmlElement.cs
- HashSetEqualityComparer.cs
- ObjectHandle.cs
- WindowsProgressbar.cs
- CodeSnippetTypeMember.cs
- RawKeyboardInputReport.cs
- Or.cs
- XmlAutoDetectWriter.cs
- SqlFacetAttribute.cs
- ProfileManager.cs
- ServiceMemoryGates.cs
- TextEndOfSegment.cs
- FormsAuthenticationModule.cs
- TransportListener.cs
- OdbcError.cs
- XamlToRtfWriter.cs
- StartFileNameEditor.cs
- DynamicILGenerator.cs
- HttpRequest.cs
- GPRECT.cs
- FileFormatException.cs
- SmuggledIUnknown.cs
- Link.cs
- EventPrivateKey.cs
- ControlCollection.cs
- EntitySet.cs
- LinkButton.cs
- RetriableClipboard.cs
- _AutoWebProxyScriptWrapper.cs
- ConfigXmlText.cs
- ReferenceEqualityComparer.cs
- XmlNamedNodeMap.cs
- _SslState.cs
- ToolStripProgressBar.cs
- ScaleTransform.cs
- ConfigurationPermission.cs
- XComponentModel.cs
- CreateUserErrorEventArgs.cs
- CodeFieldReferenceExpression.cs
- VisemeEventArgs.cs
- WebPartRestoreVerb.cs
- XmlSortKeyAccumulator.cs
- QualifiedCellIdBoolean.cs
- ToolStripPanelCell.cs