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
- ContextTokenTypeConverter.cs
- XmlElementAttribute.cs
- SettingsBase.cs
- SqlDependencyUtils.cs
- ActivityStateRecord.cs
- EDesignUtil.cs
- DataObjectAttribute.cs
- CustomGrammar.cs
- FileUpload.cs
- Action.cs
- remotingproxy.cs
- TemplateBuilder.cs
- DiagnosticTrace.cs
- Int32Storage.cs
- ISessionStateStore.cs
- ScriptModule.cs
- UnsafeNativeMethods.cs
- ServiceContractDetailViewControl.cs
- DataGridViewHitTestInfo.cs
- MailAddressCollection.cs
- WpfXamlType.cs
- ProcessHostMapPath.cs
- DynamicDiscoveryDocument.cs
- ColumnPropertiesGroup.cs
- CommandField.cs
- XmlSerializerNamespaces.cs
- BooleanFunctions.cs
- PinnedBufferMemoryStream.cs
- HttpCachePolicy.cs
- JsonWriter.cs
- FixedSOMLineRanges.cs
- DirectoryInfo.cs
- UserInitiatedNavigationPermission.cs
- SequenceDesigner.cs
- LogicalExpressionTypeConverter.cs
- ObjectDataSourceSelectingEventArgs.cs
- sortedlist.cs
- VoiceInfo.cs
- TagPrefixInfo.cs
- GenerateHelper.cs
- ToolStripGripRenderEventArgs.cs
- SecurityState.cs
- EndpointAddressElementBase.cs
- DbConnectionStringBuilder.cs
- RootProfilePropertySettingsCollection.cs
- GridViewPageEventArgs.cs
- OleDbRowUpdatingEvent.cs
- BindingNavigator.cs
- DataGridLinkButton.cs
- LabelAutomationPeer.cs
- SessionState.cs
- DbConnectionPoolIdentity.cs
- SoapProtocolImporter.cs
- DataDocumentXPathNavigator.cs
- CleanUpVirtualizedItemEventArgs.cs
- EventBuilder.cs
- AppDomainFactory.cs
- NavigationProperty.cs
- CompiledRegexRunner.cs
- SwitchLevelAttribute.cs
- FieldMetadata.cs
- GetWinFXPath.cs
- CLSCompliantAttribute.cs
- ChannelManager.cs
- RemotingConfiguration.cs
- StringCollection.cs
- LockedHandleGlyph.cs
- RuleSettings.cs
- DoubleAnimation.cs
- FtpWebResponse.cs
- FontConverter.cs
- DataGridViewCellCollection.cs
- _ConnectionGroup.cs
- ParseChildrenAsPropertiesAttribute.cs
- ApplicationInfo.cs
- StorageRoot.cs
- ToolStripProgressBar.cs
- BaseProcessProtocolHandler.cs
- ResourceType.cs
- SingleAnimationBase.cs
- SystemNetworkInterface.cs
- PassportPrincipal.cs
- WinFormsUtils.cs
- MouseButtonEventArgs.cs
- FileClassifier.cs
- filewebresponse.cs
- CloudCollection.cs
- ReferentialConstraint.cs
- HttpApplication.cs
- CharAnimationBase.cs
- SourceElementsCollection.cs
- DescendentsWalker.cs
- TextRunProperties.cs
- Scene3D.cs
- CellConstant.cs
- CqlParserHelpers.cs
- ComNativeDescriptor.cs
- TextSimpleMarkerProperties.cs
- NavigatorInvalidBodyAccessException.cs
- NetworkInformationPermission.cs