Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- UInt16.cs
- sqlmetadatafactory.cs
- RouteItem.cs
- NetTcpSecurity.cs
- RemoteX509Token.cs
- PropertyCollection.cs
- StatusBarItemAutomationPeer.cs
- CodeTypeMember.cs
- SqlRecordBuffer.cs
- MulticastOption.cs
- MemberCollection.cs
- SrgsGrammarCompiler.cs
- DecimalAnimation.cs
- PlatformCulture.cs
- TraceHandler.cs
- ManagementQuery.cs
- DateTimeHelper.cs
- SystemIcmpV4Statistics.cs
- UpdatePanelTriggerCollection.cs
- AuthenticatedStream.cs
- ObjectStorage.cs
- UserCancellationException.cs
- MultiSelectRootGridEntry.cs
- DependencyPropertyConverter.cs
- RoleManagerSection.cs
- GridView.cs
- UnsupportedPolicyOptionsException.cs
- AsyncCompletedEventArgs.cs
- LinearKeyFrames.cs
- XmlRawWriter.cs
- NavigationProperty.cs
- UInt16Converter.cs
- GcHandle.cs
- FixedSchema.cs
- QueryComponents.cs
- CultureInfoConverter.cs
- ProtectedProviderSettings.cs
- WebScriptEnablingBehavior.cs
- ContentFileHelper.cs
- RedirectionProxy.cs
- TextParentUndoUnit.cs
- LassoSelectionBehavior.cs
- SingleConverter.cs
- WorkerRequest.cs
- ReachFixedPageSerializer.cs
- RecordConverter.cs
- XmlSchemaAttributeGroup.cs
- ImageMetadata.cs
- UserControlDocumentDesigner.cs
- BoolExpr.cs
- PreservationFileReader.cs
- XmlWhitespace.cs
- GroupItem.cs
- WebScriptServiceHostFactory.cs
- SchemaElementDecl.cs
- ACE.cs
- FileLevelControlBuilderAttribute.cs
- UIHelper.cs
- InstanceLockQueryResult.cs
- LocatorPart.cs
- AnnotationResource.cs
- DataGridViewIntLinkedList.cs
- MenuItemStyleCollection.cs
- __Filters.cs
- UIElement.cs
- HitTestWithPointDrawingContextWalker.cs
- InternalCache.cs
- RemoteArgument.cs
- UserControlDocumentDesigner.cs
- EntityCollection.cs
- ArgIterator.cs
- TextRunCacheImp.cs
- TokenBasedSet.cs
- InvalidPropValue.cs
- HyperLinkColumn.cs
- BufferedWebEventProvider.cs
- ToolStripDropDownMenu.cs
- QilVisitor.cs
- PointF.cs
- WindowsSolidBrush.cs
- MtomMessageEncodingBindingElement.cs
- TokenizerHelper.cs
- DataControlFieldCollection.cs
- XmlSerializationWriter.cs
- FilterException.cs
- ObjectItemAttributeAssemblyLoader.cs
- TextFormatterHost.cs
- CallTemplateAction.cs
- indexingfiltermarshaler.cs
- XmlQualifiedName.cs
- CheckedListBox.cs
- MimeMultiPart.cs
- MarkupCompilePass2.cs
- PlatformCulture.cs
- HttpApplicationStateBase.cs
- SmiTypedGetterSetter.cs
- ItemsPresenter.cs
- TextEditorLists.cs
- RequestStatusBarUpdateEventArgs.cs
- ServiceEndpoint.cs