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
- SecUtil.cs
- MetafileHeader.cs
- DataGrid.cs
- ScriptManager.cs
- EtwTrackingBehaviorElement.cs
- CodeVariableDeclarationStatement.cs
- StructuredProperty.cs
- MULTI_QI.cs
- UpDownBase.cs
- AppSettingsSection.cs
- NativeMethods.cs
- ConstantCheck.cs
- ArrayWithOffset.cs
- RewritingPass.cs
- UIPropertyMetadata.cs
- TcpTransportSecurityElement.cs
- PrinterUnitConvert.cs
- OleDbCommandBuilder.cs
- ExtensibleClassFactory.cs
- FlatButtonAppearance.cs
- AmbientValueAttribute.cs
- GenericTypeParameterBuilder.cs
- ToolBar.cs
- GridViewCellAutomationPeer.cs
- XmlCodeExporter.cs
- BehaviorService.cs
- AuthenticationModuleElement.cs
- CodeAccessPermission.cs
- MetadataUtil.cs
- ViewCellRelation.cs
- Msec.cs
- MergePropertyDescriptor.cs
- BrowserTree.cs
- CipherData.cs
- ResXResourceWriter.cs
- ThrowHelper.cs
- Regex.cs
- Geometry3D.cs
- GridViewDeleteEventArgs.cs
- EventHandlerList.cs
- ApplicationCommands.cs
- sqlser.cs
- PersonalizationProvider.cs
- ComponentManagerBroker.cs
- ConfigXmlElement.cs
- MasterPage.cs
- FixedDocumentPaginator.cs
- TextRunProperties.cs
- EventLogEntry.cs
- ClientEventManager.cs
- XmlReader.cs
- DefaultAuthorizationContext.cs
- Msec.cs
- DefaultShape.cs
- SchemaNames.cs
- CodeGroup.cs
- ObjectResult.cs
- MediaCommands.cs
- AnalyzedTree.cs
- UnicastIPAddressInformationCollection.cs
- Vector3DCollection.cs
- DataBinder.cs
- CompositionAdorner.cs
- MatrixAnimationBase.cs
- ConfigXmlComment.cs
- StreamReader.cs
- Tile.cs
- HttpServerUtilityBase.cs
- SetStoryboardSpeedRatio.cs
- ProtocolsConfigurationHandler.cs
- XmlSigningNodeWriter.cs
- TableItemStyle.cs
- TimeoutValidationAttribute.cs
- UrlMapping.cs
- TextFormatterImp.cs
- HtmlHead.cs
- ArrayElementGridEntry.cs
- WebPartConnection.cs
- GPStream.cs
- RoleGroupCollection.cs
- _SingleItemRequestCache.cs
- CommandValueSerializer.cs
- ManipulationInertiaStartingEventArgs.cs
- OrderedParallelQuery.cs
- RegionIterator.cs
- OracleColumn.cs
- NameValueCollection.cs
- PropertyEntry.cs
- DeferredReference.cs
- UpdateInfo.cs
- UInt64Converter.cs
- HttpConfigurationSystem.cs
- EDesignUtil.cs
- ProfilePropertySettingsCollection.cs
- InstanceCompleteException.cs
- Matrix3DValueSerializer.cs
- GPRECTF.cs
- DataControlPagerLinkButton.cs
- ExternalFile.cs
- ListenerAdapterBase.cs