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
- BindableTemplateBuilder.cs
- UserControl.cs
- EnumConverter.cs
- TextFindEngine.cs
- RelationshipEndMember.cs
- SoapCodeExporter.cs
- Scene3D.cs
- TokenBasedSetEnumerator.cs
- TitleStyle.cs
- LogWriteRestartAreaState.cs
- ValidationHelper.cs
- PrivateFontCollection.cs
- XmlIlGenerator.cs
- ResourceCategoryAttribute.cs
- Internal.cs
- SourceFilter.cs
- InheritanceContextChangedEventManager.cs
- CompiledRegexRunnerFactory.cs
- QueryExecutionOption.cs
- _SSPISessionCache.cs
- InputBuffer.cs
- TouchDevice.cs
- _Events.cs
- DataGridTemplateColumn.cs
- BrowserDefinition.cs
- QuaternionRotation3D.cs
- CommonDialog.cs
- SharedPersonalizationStateInfo.cs
- GridViewRowPresenter.cs
- FormatConvertedBitmap.cs
- ParseElement.cs
- HandledEventArgs.cs
- SqlNotificationEventArgs.cs
- PenLineJoinValidation.cs
- SafeNativeMethods.cs
- ForwardPositionQuery.cs
- Point.cs
- MethodCallExpression.cs
- MexHttpBindingElement.cs
- DynamicValueConverter.cs
- EntityCollectionChangedParams.cs
- FixUpCollection.cs
- DebugHandleTracker.cs
- Panel.cs
- EmbeddedObject.cs
- XmlCharCheckingWriter.cs
- Pens.cs
- BuildManagerHost.cs
- StringHandle.cs
- Pen.cs
- ComponentGuaranteesAttribute.cs
- KnownColorTable.cs
- DataGridRowHeader.cs
- ResolveDuplex11AsyncResult.cs
- ObjectDataSourceMethodEventArgs.cs
- EntityWithKeyStrategy.cs
- EntityTemplateFactory.cs
- Subtract.cs
- FormClosedEvent.cs
- FileEnumerator.cs
- PeerNameRecordCollection.cs
- WebPartConnectionsCancelEventArgs.cs
- StoreItemCollection.cs
- CommandPlan.cs
- DocumentGridPage.cs
- TextContainerChangedEventArgs.cs
- EntryPointNotFoundException.cs
- DataControlLinkButton.cs
- ObjectParameter.cs
- CodeTypeDeclarationCollection.cs
- CommandValueSerializer.cs
- ManifestSignatureInformation.cs
- EdmComplexPropertyAttribute.cs
- ControlBindingsCollection.cs
- HtmlInputPassword.cs
- basecomparevalidator.cs
- Trace.cs
- SerializationInfoEnumerator.cs
- CodeTypeDelegate.cs
- FocusManager.cs
- WCFBuildProvider.cs
- XmlAtomicValue.cs
- TraceHandlerErrorFormatter.cs
- WebZone.cs
- CounterSample.cs
- StaticResourceExtension.cs
- TypeGeneratedEventArgs.cs
- ReachFixedPageSerializer.cs
- StreamWithDictionary.cs
- BufferedGraphicsContext.cs
- BindingExpression.cs
- FixedLineResult.cs
- FixedPageProcessor.cs
- TextTreeUndoUnit.cs
- JournalEntryStack.cs
- ControlUtil.cs
- QilTypeChecker.cs
- ProjectionPruner.cs
- SourceExpressionException.cs
- PathFigure.cs