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
- ExpressionEditorAttribute.cs
- TogglePattern.cs
- SessionPageStatePersister.cs
- OperationContextScope.cs
- DetailsViewRowCollection.cs
- HashHelper.cs
- DataSourceSelectArguments.cs
- Effect.cs
- Gdiplus.cs
- ViewRendering.cs
- ManagedWndProcTracker.cs
- ResourcePart.cs
- LookupBindingPropertiesAttribute.cs
- TypedLocationWrapper.cs
- EventArgs.cs
- ViewKeyConstraint.cs
- FontUnitConverter.cs
- tooltip.cs
- XmlSchemaInclude.cs
- EditorPart.cs
- HeaderedContentControl.cs
- ApplicationDirectoryMembershipCondition.cs
- Operand.cs
- FileDialog_Vista.cs
- StylusPlugin.cs
- WindowsBrush.cs
- FixedSOMContainer.cs
- UpdateCommand.cs
- ToolStripLabel.cs
- ToolBarPanel.cs
- ApplicationException.cs
- ScriptHandlerFactory.cs
- SelectionHighlightInfo.cs
- ResourceWriter.cs
- StringSorter.cs
- ExtensionSurface.cs
- CommandBinding.cs
- AnnotationObservableCollection.cs
- CodeTypeReferenceSerializer.cs
- MimeBasePart.cs
- SQLInt64.cs
- JoinQueryOperator.cs
- CoreSwitches.cs
- RestHandler.cs
- VisualStyleElement.cs
- SelectionHighlightInfo.cs
- ChangeDirector.cs
- Utils.cs
- SqlConnectionHelper.cs
- ExpressionBuilder.cs
- UserPrincipalNameElement.cs
- COSERVERINFO.cs
- TimelineClockCollection.cs
- SerializationSectionGroup.cs
- SecurityContextSecurityTokenResolver.cs
- X509CertificateStore.cs
- MaskedTextProvider.cs
- Pkcs7Recipient.cs
- DataGridViewControlCollection.cs
- AVElementHelper.cs
- InfoCardMetadataExchangeClient.cs
- WebColorConverter.cs
- SafeNativeMethodsCLR.cs
- X509Certificate.cs
- DerivedKeySecurityToken.cs
- NumberFunctions.cs
- SoapIncludeAttribute.cs
- CoreSwitches.cs
- LineServices.cs
- XmlSchemaAnnotated.cs
- SQLBinary.cs
- AttachmentCollection.cs
- PTManager.cs
- OdbcEnvironment.cs
- ServiceMemoryGates.cs
- TemplatingOptionsDialog.cs
- StatusBarPanelClickEvent.cs
- PackWebResponse.cs
- CLRBindingWorker.cs
- StylusPointPropertyInfo.cs
- ByteAnimationBase.cs
- SimpleBitVector32.cs
- SharedHttpTransportManager.cs
- AnnotationMap.cs
- FontStretch.cs
- WindowsSpinner.cs
- DESCryptoServiceProvider.cs
- MetadataArtifactLoaderCompositeResource.cs
- InplaceBitmapMetadataWriter.cs
- SqlTransaction.cs
- OleDbParameter.cs
- CompModSwitches.cs
- ToolStripCollectionEditor.cs
- ByteFacetDescriptionElement.cs
- WindowsFormsEditorServiceHelper.cs
- SQLStringStorage.cs
- EdmComplexTypeAttribute.cs
- Message.cs
- DoubleCollection.cs
- WebConfigurationHostFileChange.cs