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
- MeasureData.cs
- DecoderBestFitFallback.cs
- SourceFileBuildProvider.cs
- UriWriter.cs
- SecurityContextSecurityTokenParameters.cs
- BufferedOutputStream.cs
- DynamicRenderer.cs
- storepermissionattribute.cs
- XsdValidatingReader.cs
- SqlServices.cs
- ListBindingConverter.cs
- KeyboardEventArgs.cs
- MasterPageCodeDomTreeGenerator.cs
- XmlValidatingReader.cs
- ProfileSettingsCollection.cs
- SQLInt16.cs
- nulltextcontainer.cs
- MsmqMessageProperty.cs
- MarshalDirectiveException.cs
- SqlBulkCopyColumnMapping.cs
- RequestCache.cs
- WebPartZone.cs
- ObfuscationAttribute.cs
- ImageProxy.cs
- ArraySortHelper.cs
- ShaderEffect.cs
- FocusTracker.cs
- ToolStripHighContrastRenderer.cs
- AddInActivator.cs
- PeerInvitationResponse.cs
- ComboBoxHelper.cs
- SpAudioStreamWrapper.cs
- ParameterBuilder.cs
- ControlCodeDomSerializer.cs
- SpeechAudioFormatInfo.cs
- OverflowException.cs
- VerificationException.cs
- ListViewItem.cs
- Header.cs
- StylusDevice.cs
- ApplicationId.cs
- ElementProxy.cs
- BufferModeSettings.cs
- RectangleGeometry.cs
- TemplateControlCodeDomTreeGenerator.cs
- ThrowHelper.cs
- XpsSerializationManagerAsync.cs
- StandardToolWindows.cs
- SamlAudienceRestrictionCondition.cs
- GcSettings.cs
- CalendarDesigner.cs
- unsafenativemethodsother.cs
- JsonStringDataContract.cs
- Error.cs
- AuthorizationSection.cs
- MatrixIndependentAnimationStorage.cs
- GetImportFileNameRequest.cs
- XmlCodeExporter.cs
- ComponentManagerBroker.cs
- DataGridCheckBoxColumn.cs
- RemotingConfigParser.cs
- ISFTagAndGuidCache.cs
- Symbol.cs
- SchemaObjectWriter.cs
- ActivitySurrogate.cs
- SystemSounds.cs
- ScriptManagerProxy.cs
- EditorZoneBase.cs
- WebServiceReceiveDesigner.cs
- ListBoxChrome.cs
- NotSupportedException.cs
- DataGridViewSelectedRowCollection.cs
- TypeUtil.cs
- Connector.cs
- DSASignatureDeformatter.cs
- DiscoveryUtility.cs
- TextAutomationPeer.cs
- DataSetMappper.cs
- StylusButtonCollection.cs
- PageBreakRecord.cs
- InternalRelationshipCollection.cs
- SR.cs
- PublisherIdentityPermission.cs
- FixedSOMPageElement.cs
- HyperLinkColumn.cs
- PageStatePersister.cs
- storagemappingitemcollection.viewdictionary.cs
- DataSourceControlBuilder.cs
- MessageDecoder.cs
- FunctionCommandText.cs
- Walker.cs
- DesignerOptionService.cs
- BinaryNode.cs
- RuntimeWrappedException.cs
- CodeAttributeDeclaration.cs
- HierarchicalDataTemplate.cs
- ColumnResult.cs
- StringStorage.cs
- RIPEMD160.cs
- MessageParameterAttribute.cs