Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / clr / src / BCL / System / Runtime / InteropServices / SEHException.cs / 1 / SEHException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: SEHException ** ** ** Purpose: Exception class for all Structured Exception Handling code. ** ** =============================================================================*/ namespace System.Runtime.InteropServices { using System.Runtime.InteropServices; using System; using System.Runtime.Serialization; // Exception for Structured Exception Handler exceptions. // [System.Runtime.InteropServices.ComVisible(true)] [Serializable()] public class SEHException : ExternalException { public SEHException() : base() { SetErrorCode(__HResults.E_FAIL); } public SEHException(String message) : base(message) { SetErrorCode(__HResults.E_FAIL); } public SEHException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.E_FAIL); } protected SEHException(SerializationInfo info, StreamingContext context) : base(info, context) { } // Exceptions can be resumable, meaning a filtered exception // handler can correct the problem that caused the exception, // and the code will continue from the point that threw the // exception. // // Resumable exceptions aren't implemented in this version, // but this method exists and always returns false. // public virtual bool CanResume() { return false; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: SEHException ** ** ** Purpose: Exception class for all Structured Exception Handling code. ** ** =============================================================================*/ namespace System.Runtime.InteropServices { using System.Runtime.InteropServices; using System; using System.Runtime.Serialization; // Exception for Structured Exception Handler exceptions. // [System.Runtime.InteropServices.ComVisible(true)] [Serializable()] public class SEHException : ExternalException { public SEHException() : base() { SetErrorCode(__HResults.E_FAIL); } public SEHException(String message) : base(message) { SetErrorCode(__HResults.E_FAIL); } public SEHException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.E_FAIL); } protected SEHException(SerializationInfo info, StreamingContext context) : base(info, context) { } // Exceptions can be resumable, meaning a filtered exception // handler can correct the problem that caused the exception, // and the code will continue from the point that threw the // exception. // // Resumable exceptions aren't implemented in this version, // but this method exists and always returns false. // public virtual bool CanResume() { return false; } } } // 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
- RuntimeCompatibilityAttribute.cs
- FixedDocumentPaginator.cs
- WindowsListViewItem.cs
- CustomAttributeBuilder.cs
- Timer.cs
- MenuItem.cs
- ErrorStyle.cs
- _StreamFramer.cs
- DownloadProgressEventArgs.cs
- SocketAddress.cs
- HyperLinkColumn.cs
- PhysicalFontFamily.cs
- DependsOnAttribute.cs
- HtmlButton.cs
- DesignSurfaceCollection.cs
- WebPartConnectionsEventArgs.cs
- FontSizeConverter.cs
- ParallelQuery.cs
- SessionStateSection.cs
- FigureParaClient.cs
- DocumentViewerBaseAutomationPeer.cs
- OleDbCommand.cs
- JpegBitmapDecoder.cs
- Geometry.cs
- RowSpanVector.cs
- SchemaElementLookUpTable.cs
- TextLine.cs
- ConfigXmlText.cs
- SupportsEventValidationAttribute.cs
- EventSourceCreationData.cs
- ExpressionList.cs
- RelationshipType.cs
- ApplicationInterop.cs
- CodeAccessPermission.cs
- ZipIOFileItemStream.cs
- serverconfig.cs
- WebMessageEncodingBindingElement.cs
- DbParameterCollection.cs
- securitycriticaldataformultiplegetandset.cs
- UnsafeNativeMethods.cs
- BrowserCapabilitiesFactoryBase.cs
- TriggerBase.cs
- Grid.cs
- StorageEndPropertyMapping.cs
- GridEntryCollection.cs
- LoginUtil.cs
- RegexCapture.cs
- ToolStripItemGlyph.cs
- CreatingCookieEventArgs.cs
- CompiledXpathExpr.cs
- SmtpFailedRecipientsException.cs
- ExceptionHandlersDesigner.cs
- OSFeature.cs
- RegexGroupCollection.cs
- XmlReturnReader.cs
- sqlstateclientmanager.cs
- EventDescriptorCollection.cs
- ParenExpr.cs
- InvalidOleVariantTypeException.cs
- AccessText.cs
- AttachmentCollection.cs
- CacheDict.cs
- MethodExpression.cs
- BaseParser.cs
- DispatcherHooks.cs
- SimpleMailWebEventProvider.cs
- X509ChainElement.cs
- ZipIOExtraFieldZip64Element.cs
- SymmetricCryptoHandle.cs
- ListViewGroup.cs
- PersonalizationStateQuery.cs
- Solver.cs
- FileLevelControlBuilderAttribute.cs
- ComAdminInterfaces.cs
- OperandQuery.cs
- ApplicationHost.cs
- ProfileSettingsCollection.cs
- PageEventArgs.cs
- Aes.cs
- BamlStream.cs
- ReaderWriterLockSlim.cs
- EventLogEntryCollection.cs
- TTSEngineTypes.cs
- _SafeNetHandles.cs
- UpDownBase.cs
- PropertySourceInfo.cs
- GeometryHitTestParameters.cs
- ProfileServiceManager.cs
- Soap.cs
- MissingFieldException.cs
- HttpListenerException.cs
- XmlProcessingInstruction.cs
- MsmqTransportBindingElement.cs
- XmlDictionary.cs
- ConfigurationManagerHelper.cs
- IpcManager.cs
- GlobalizationAssembly.cs
- IxmlLineInfo.cs
- AlternateView.cs
- UseAttributeSetsAction.cs