Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / InteropServices / SEHException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated 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); } [System.Security.SecuritySafeCritical] // auto-generated 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
- Message.cs
- DataPagerFieldCollection.cs
- ConsumerConnectionPointCollection.cs
- InternalConfigEventArgs.cs
- BinaryNode.cs
- StateBag.cs
- CompilerError.cs
- GroupQuery.cs
- AssemblyFilter.cs
- FocusWithinProperty.cs
- SqlServer2KCompatibilityAnnotation.cs
- RadioButtonBaseAdapter.cs
- RTLAwareMessageBox.cs
- LinqDataSourceSelectEventArgs.cs
- ExpressionPrinter.cs
- TypeResolver.cs
- InteropAutomationProvider.cs
- DesignerEditorPartChrome.cs
- _SpnDictionary.cs
- UnhandledExceptionEventArgs.cs
- SoapSchemaImporter.cs
- MLangCodePageEncoding.cs
- sqlstateclientmanager.cs
- TailCallAnalyzer.cs
- ErrorFormatterPage.cs
- DateTimeFormat.cs
- DataGridViewCellStyleEditor.cs
- ClonableStack.cs
- DataPager.cs
- KnownBoxes.cs
- FieldTemplateFactory.cs
- WebPartUtil.cs
- Canonicalizers.cs
- ClientTargetSection.cs
- ResizeGrip.cs
- BulletedList.cs
- CompressionTransform.cs
- KeyBinding.cs
- SourceSwitch.cs
- ISSmlParser.cs
- GroupBoxRenderer.cs
- CompositionTarget.cs
- DirtyTextRange.cs
- XamlToRtfWriter.cs
- DiscoveryServiceExtension.cs
- PageAdapter.cs
- RemoteHelper.cs
- Executor.cs
- AttributeCollection.cs
- TransactionChannelFactory.cs
- FlowDocumentView.cs
- NotEqual.cs
- ThreadStaticAttribute.cs
- __Error.cs
- PenThreadWorker.cs
- LiteralControl.cs
- PublisherIdentityPermission.cs
- SelectionWordBreaker.cs
- NameNode.cs
- FieldTemplateFactory.cs
- DataExchangeServiceBinder.cs
- OracleFactory.cs
- CatalogPartChrome.cs
- CollectionChangedEventManager.cs
- HierarchicalDataSourceControl.cs
- DataGridViewControlCollection.cs
- NetworkCredential.cs
- UrlMapping.cs
- HtmlDocument.cs
- XmlQualifiedName.cs
- XPathScanner.cs
- SmiSettersStream.cs
- LinqDataSourceInsertEventArgs.cs
- ClipboardProcessor.cs
- RowUpdatedEventArgs.cs
- BasicBrowserDialog.cs
- PlatformNotSupportedException.cs
- CultureInfoConverter.cs
- HMACSHA1.cs
- IndependentAnimationStorage.cs
- LinearGradientBrush.cs
- PolyQuadraticBezierSegment.cs
- ThemeableAttribute.cs
- OperatorExpressions.cs
- OLEDB_Util.cs
- _ConnectStream.cs
- ActivityXamlServices.cs
- Point.cs
- EdmEntityTypeAttribute.cs
- ProjectedWrapper.cs
- HtmlShimManager.cs
- InheritanceContextHelper.cs
- ClrProviderManifest.cs
- EmbeddedMailObjectsCollection.cs
- RegexStringValidatorAttribute.cs
- WebPartConnection.cs
- Formatter.cs
- TextLineBreak.cs
- RegexWorker.cs
- DesignerRegionMouseEventArgs.cs