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
- TimeManager.cs
- DataServiceHostFactory.cs
- References.cs
- ThreadStaticAttribute.cs
- AsymmetricSignatureDeformatter.cs
- CssStyleCollection.cs
- CompModSwitches.cs
- DocumentScope.cs
- BitStack.cs
- SecuritySessionSecurityTokenProvider.cs
- XmlTextReader.cs
- HttpPostedFile.cs
- DataRowExtensions.cs
- ControlCodeDomSerializer.cs
- OptimalTextSource.cs
- CodeSnippetTypeMember.cs
- NetworkCredential.cs
- PeerNameRecord.cs
- DataGridCommandEventArgs.cs
- LocalizableResourceBuilder.cs
- HttpCookiesSection.cs
- DataException.cs
- ViewStateModeByIdAttribute.cs
- StaticResourceExtension.cs
- InputBinding.cs
- HtmlInputText.cs
- TextReader.cs
- CryptoConfig.cs
- GridViewColumn.cs
- ExceptionRoutedEventArgs.cs
- DetailsViewRowCollection.cs
- ColorDialog.cs
- ContentHostHelper.cs
- ConversionHelper.cs
- SqlPersonalizationProvider.cs
- connectionpool.cs
- _SslSessionsCache.cs
- MobileCapabilities.cs
- OleDbRowUpdatedEvent.cs
- LinearGradientBrush.cs
- OrderedDictionary.cs
- HostProtectionException.cs
- XmlQueryContext.cs
- connectionpool.cs
- ImageUrlEditor.cs
- StringPropertyBuilder.cs
- PropertyChangedEventArgs.cs
- ContentPresenter.cs
- InternalEnumValidator.cs
- BamlTreeUpdater.cs
- OperationGenerator.cs
- DbConnectionPoolCounters.cs
- LinkedDataMemberFieldEditor.cs
- NativeWindow.cs
- BitmapCodecInfoInternal.cs
- JoinSymbol.cs
- IgnoreFlushAndCloseStream.cs
- TripleDES.cs
- IdentityModelDictionary.cs
- IssuedTokenParametersEndpointAddressElement.cs
- PlainXmlSerializer.cs
- VirtualizedItemProviderWrapper.cs
- BindableTemplateBuilder.cs
- ClientScriptManagerWrapper.cs
- BookmarkInfo.cs
- CLSCompliantAttribute.cs
- ListViewDesigner.cs
- DecimalAnimationUsingKeyFrames.cs
- ToolStripActionList.cs
- InputScopeAttribute.cs
- CallTemplateAction.cs
- XmlCollation.cs
- MorphHelpers.cs
- SkewTransform.cs
- SamlAction.cs
- TreeViewAutomationPeer.cs
- WebPartTransformerAttribute.cs
- DateTimeFormatInfo.cs
- DataGridViewDataConnection.cs
- TextMessageEncoder.cs
- _FtpControlStream.cs
- TextEditorCharacters.cs
- ResourceProviderFactory.cs
- path.cs
- CachedCompositeFamily.cs
- XmlILOptimizerVisitor.cs
- BaseProcessor.cs
- TransformerInfo.cs
- isolationinterop.cs
- InternalBufferOverflowException.cs
- OlePropertyStructs.cs
- RegexInterpreter.cs
- IpcServerChannel.cs
- ColorMap.cs
- DBConnectionString.cs
- Application.cs
- DataGridViewSelectedCellCollection.cs
- IgnoreSectionHandler.cs
- KeyFrames.cs
- HMACSHA384.cs