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
- TemplatePropertyEntry.cs
- RuntimeConfig.cs
- NumericUpDownAcceleration.cs
- XPathSingletonIterator.cs
- StateDesignerConnector.cs
- versioninfo.cs
- ViewService.cs
- UxThemeWrapper.cs
- TextEditorTables.cs
- HtmlElementCollection.cs
- EventProvider.cs
- ErrorWrapper.cs
- WpfPayload.cs
- SimpleApplicationHost.cs
- WorkflowCreationContext.cs
- UrlMappingsSection.cs
- Rectangle.cs
- GrammarBuilderRuleRef.cs
- Set.cs
- BookmarkList.cs
- RootNamespaceAttribute.cs
- MultiByteCodec.cs
- JournalEntryListConverter.cs
- HwndAppCommandInputProvider.cs
- TranslateTransform3D.cs
- __FastResourceComparer.cs
- PeerObject.cs
- ObjectReferenceStack.cs
- Light.cs
- ScrollEventArgs.cs
- RtfToXamlReader.cs
- Baml2006KeyRecord.cs
- SafeTokenHandle.cs
- SqlConnectionPoolProviderInfo.cs
- RowsCopiedEventArgs.cs
- PropertyValueUIItem.cs
- TypeToken.cs
- XPathAxisIterator.cs
- ErrorFormatterPage.cs
- DataGridViewButtonCell.cs
- DataTablePropertyDescriptor.cs
- SelectionChangedEventArgs.cs
- EntityDataSource.cs
- WindowsTooltip.cs
- UnsafeNativeMethodsCLR.cs
- ProtocolsSection.cs
- DoubleAnimationUsingKeyFrames.cs
- TraceHwndHost.cs
- ByteAnimationBase.cs
- MetabaseSettingsIis7.cs
- LinearGradientBrush.cs
- IntAverageAggregationOperator.cs
- TextRangeBase.cs
- TextElement.cs
- CodeComment.cs
- ExternalException.cs
- ListSortDescription.cs
- PointAnimationBase.cs
- Imaging.cs
- ObjectListFieldCollection.cs
- SizeFConverter.cs
- XPathScanner.cs
- DocumentPageTextView.cs
- SamlConstants.cs
- FileDialog_Vista.cs
- NullExtension.cs
- TrackBarRenderer.cs
- HwndKeyboardInputProvider.cs
- NativeMethods.cs
- ProfileGroupSettings.cs
- ContextStaticAttribute.cs
- ModelTreeEnumerator.cs
- NavigationProperty.cs
- SpellerError.cs
- CodePageUtils.cs
- HtmlAnchor.cs
- Addressing.cs
- ResourceBinder.cs
- GridEntryCollection.cs
- DrawToolTipEventArgs.cs
- ThrowHelper.cs
- ScriptMethodAttribute.cs
- GACMembershipCondition.cs
- XmlSerializerAssemblyAttribute.cs
- VisualState.cs
- NetworkInterface.cs
- XPathBinder.cs
- RequestStatusBarUpdateEventArgs.cs
- IdentityReference.cs
- InvokePattern.cs
- ChtmlTextWriter.cs
- WebDescriptionAttribute.cs
- ExpressionEditorSheet.cs
- CodeThrowExceptionStatement.cs
- GorillaCodec.cs
- AppSettingsReader.cs
- SecondaryIndexList.cs
- TransformationRules.cs
- filewebresponse.cs
- PageSettings.cs