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 / 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
- SubclassTypeValidator.cs
- XamlDesignerSerializationManager.cs
- WrapPanel.cs
- DeliveryStrategy.cs
- WorkflowStateRollbackService.cs
- SqlWriter.cs
- AutoGeneratedFieldProperties.cs
- TimersDescriptionAttribute.cs
- DataGridViewCell.cs
- RoleService.cs
- FormatterConverter.cs
- IconConverter.cs
- XmlILModule.cs
- DataTable.cs
- QuaternionRotation3D.cs
- StringInfo.cs
- HashAlgorithm.cs
- PerformanceCountersElement.cs
- BamlLocalizableResourceKey.cs
- DtdParser.cs
- AsyncInvokeContext.cs
- ToolTipService.cs
- InternalSafeNativeMethods.cs
- GlobalEventManager.cs
- PersonalizationProvider.cs
- ActivityMarkupSerializationProvider.cs
- GroupQuery.cs
- TextModifierScope.cs
- CustomErrorCollection.cs
- HtmlTableCell.cs
- DashStyles.cs
- OleDbFactory.cs
- MtomMessageEncodingBindingElement.cs
- RepeatInfo.cs
- DataSourceCollectionBase.cs
- FlowDocumentReaderAutomationPeer.cs
- ExpressionPrinter.cs
- SqlCacheDependency.cs
- ConcurrentStack.cs
- PtsPage.cs
- PageBuildProvider.cs
- CompModHelpers.cs
- TableSectionStyle.cs
- SoapSchemaMember.cs
- FileDocument.cs
- RepeatButton.cs
- Rotation3D.cs
- ComboBoxAutomationPeer.cs
- Automation.cs
- WSFederationHttpBindingElement.cs
- XmlSerializerAssemblyAttribute.cs
- PathFigureCollection.cs
- SpeechAudioFormatInfo.cs
- DoubleIndependentAnimationStorage.cs
- IxmlLineInfo.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- TraceSource.cs
- FontNamesConverter.cs
- IdnMapping.cs
- CanonicalFormWriter.cs
- Query.cs
- PolyBezierSegmentFigureLogic.cs
- TouchFrameEventArgs.cs
- Documentation.cs
- PermissionRequestEvidence.cs
- XmlNamespaceManager.cs
- WindowsRichEdit.cs
- ProgressChangedEventArgs.cs
- WindowCollection.cs
- SmtpFailedRecipientException.cs
- TextElementAutomationPeer.cs
- FlagsAttribute.cs
- TextDecorationLocationValidation.cs
- Predicate.cs
- XmlObjectSerializerWriteContextComplex.cs
- DoubleLinkList.cs
- GetWorkflowTree.cs
- PersistenceParticipant.cs
- ConfigXmlDocument.cs
- ProfessionalColorTable.cs
- RuleElement.cs
- DesignerVerbCollection.cs
- ExpressionVisitorHelpers.cs
- SmtpFailedRecipientsException.cs
- TypeElementCollection.cs
- PointCollectionValueSerializer.cs
- SqlMetaData.cs
- cookieexception.cs
- X509Certificate2.cs
- RectangleHotSpot.cs
- TypedColumnHandler.cs
- LOSFormatter.cs
- WeakHashtable.cs
- WorkflowRuntimeServiceElementCollection.cs
- GradientBrush.cs
- SqlDataSourceStatusEventArgs.cs
- UIPermission.cs
- _LocalDataStore.cs
- XmlCompatibilityReader.cs
- AsymmetricKeyExchangeFormatter.cs