Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- SafeEventLogWriteHandle.cs
- SerializationInfoEnumerator.cs
- DataControlExtensions.cs
- ResourceReferenceKeyNotFoundException.cs
- Int64Storage.cs
- ApplicationServiceManager.cs
- FixedStringLookup.cs
- NullableDecimalMinMaxAggregationOperator.cs
- NavigationHelper.cs
- UrlMappingsSection.cs
- StructuralCache.cs
- DisplayMemberTemplateSelector.cs
- KnownIds.cs
- DurableMessageDispatchInspector.cs
- IconConverter.cs
- ClientTarget.cs
- SystemWebSectionGroup.cs
- Wizard.cs
- CheckBoxList.cs
- HopperCache.cs
- DataChangedEventManager.cs
- TextRenderer.cs
- XmlName.cs
- SplineKeyFrames.cs
- ObjectViewFactory.cs
- MatrixKeyFrameCollection.cs
- RichTextBoxConstants.cs
- TransformerTypeCollection.cs
- MemberDescriptor.cs
- ArgumentDirectionHelper.cs
- SafeNativeMethods.cs
- EntityConnectionStringBuilder.cs
- CngAlgorithmGroup.cs
- TranslateTransform3D.cs
- GraphicsContainer.cs
- EnumBuilder.cs
- ToolStripPanelRenderEventArgs.cs
- AsymmetricKeyExchangeDeformatter.cs
- BoolExpression.cs
- BooleanConverter.cs
- DataObjectMethodAttribute.cs
- DNS.cs
- BuildManagerHost.cs
- ValidationResult.cs
- BasicExpressionVisitor.cs
- DataSourceSelectArguments.cs
- HttpModulesSection.cs
- Restrictions.cs
- WaitHandleCannotBeOpenedException.cs
- DiscreteKeyFrames.cs
- NativeMethods.cs
- MenuTracker.cs
- SchemaCompiler.cs
- EpmContentSerializer.cs
- CompositionCommandSet.cs
- PropertyTabChangedEvent.cs
- ToolStripSystemRenderer.cs
- SqlDataSourceQueryEditorForm.cs
- AspCompat.cs
- StyleBamlRecordReader.cs
- XmlDictionary.cs
- UnsafeNativeMethods.cs
- XPathNode.cs
- HtmlEncodedRawTextWriter.cs
- DisplayInformation.cs
- XmlException.cs
- EntityEntry.cs
- TreeNodeCollection.cs
- XmlWrappingWriter.cs
- SimpleBitVector32.cs
- Adorner.cs
- TableRowCollection.cs
- MetadataUtil.cs
- cookie.cs
- ScriptResourceHandler.cs
- Polygon.cs
- HttpProfileBase.cs
- PolicyStatement.cs
- MetadataPropertyAttribute.cs
- HtmlMobileTextWriter.cs
- UxThemeWrapper.cs
- EmbeddedObject.cs
- AutomationPatternInfo.cs
- ToolboxItemCollection.cs
- WeakEventManager.cs
- BaseValidatorDesigner.cs
- PersistenceIOParticipant.cs
- ClientSession.cs
- remotingproxy.cs
- LineServicesCallbacks.cs
- SelectedGridItemChangedEvent.cs
- TrackBarRenderer.cs
- Console.cs
- COM2Properties.cs
- VectorAnimation.cs
- VersionedStreamOwner.cs
- XmlResolver.cs
- LogWriteRestartAreaState.cs
- FixedLineResult.cs
- Image.cs