Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- TemplateContentLoader.cs
- GridViewUpdatedEventArgs.cs
- IntPtr.cs
- SecurityTokenTypes.cs
- EntityKeyElement.cs
- SqlMethodAttribute.cs
- ProjectedSlot.cs
- PathNode.cs
- CardSpaceException.cs
- LocationSectionRecord.cs
- LOSFormatter.cs
- ModelServiceImpl.cs
- Int32Animation.cs
- QueryOperatorEnumerator.cs
- COM2Properties.cs
- CreatingCookieEventArgs.cs
- AddInSegmentDirectoryNotFoundException.cs
- TextTreeUndo.cs
- ScriptDescriptor.cs
- EnumUnknown.cs
- PageRequestManager.cs
- hresults.cs
- DataTemplateSelector.cs
- OutputCacheSettingsSection.cs
- EnumerableRowCollection.cs
- httpstaticobjectscollection.cs
- Convert.cs
- SecurityVerifiedMessage.cs
- OciEnlistContext.cs
- GeometryConverter.cs
- OverlappedAsyncResult.cs
- OperationBehaviorAttribute.cs
- MessageSecurityOverHttpElement.cs
- WorkflowMarkupSerializationManager.cs
- QuerySubExprEliminator.cs
- SiteMapNodeItem.cs
- EventArgs.cs
- ProtocolsSection.cs
- RichTextBoxConstants.cs
- PrintDialogDesigner.cs
- Help.cs
- NameScope.cs
- XmlSchemaGroup.cs
- CompilerCollection.cs
- FileDialogPermission.cs
- WindowsListBox.cs
- StylusPointProperties.cs
- UrlPath.cs
- GrammarBuilderBase.cs
- MemoryPressure.cs
- MessageBox.cs
- StringExpressionSet.cs
- ScopelessEnumAttribute.cs
- XmlSchemaComplexContentExtension.cs
- ExpressionBuilderCollection.cs
- DictionaryTraceRecord.cs
- ComponentResourceManager.cs
- HMACRIPEMD160.cs
- TextElementCollection.cs
- TerminateSequence.cs
- Timer.cs
- Geometry3D.cs
- RouteUrlExpressionBuilder.cs
- XmlSerializer.cs
- Transform.cs
- ProcessModule.cs
- CertificateReferenceElement.cs
- UnsafePeerToPeerMethods.cs
- AQNBuilder.cs
- ListManagerBindingsCollection.cs
- SqlUDTStorage.cs
- EditorServiceContext.cs
- SqlDataSourceStatusEventArgs.cs
- XmlSchemaInferenceException.cs
- ClientConvert.cs
- GenericIdentity.cs
- EventBuilder.cs
- AuthenticationConfig.cs
- AxDesigner.cs
- TrackBarRenderer.cs
- DataPointer.cs
- ToolTip.cs
- StorageMappingFragment.cs
- MethodBuilder.cs
- SqlTypeConverter.cs
- IpcChannel.cs
- TextRunCache.cs
- WmlPageAdapter.cs
- XmlDocument.cs
- Triangle.cs
- RuleConditionDialog.cs
- PrePrepareMethodAttribute.cs
- MenuRendererClassic.cs
- CompositionCommandSet.cs
- VBIdentifierName.cs
- SoapClientMessage.cs
- MouseBinding.cs
- QuaternionConverter.cs
- FieldCollectionEditor.cs
- BindingContext.cs