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
- ListenerElementsCollection.cs
- RuleSetBrowserDialog.cs
- ReversePositionQuery.cs
- Visual3D.cs
- AnnotationResourceChangedEventArgs.cs
- CommandEventArgs.cs
- XmlSchemaAny.cs
- ComboBoxAutomationPeer.cs
- EncryptionUtility.cs
- BufferBuilder.cs
- RequestCachingSection.cs
- PointKeyFrameCollection.cs
- RectangleF.cs
- UIntPtr.cs
- DispatcherExceptionEventArgs.cs
- DataFieldEditor.cs
- _NegotiateClient.cs
- Bitmap.cs
- TextElementCollection.cs
- Operand.cs
- XmlQueryStaticData.cs
- Permission.cs
- Keyboard.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- GridSplitterAutomationPeer.cs
- RewritingValidator.cs
- CodeSubDirectory.cs
- ContentElementCollection.cs
- QilLiteral.cs
- ScaleTransform3D.cs
- OdbcConnection.cs
- LinkLabelLinkClickedEvent.cs
- PropertyEmitterBase.cs
- TextContainer.cs
- StrokeNodeData.cs
- SpellerError.cs
- CodeSnippetCompileUnit.cs
- SqlCommandAsyncResult.cs
- DbConnectionPool.cs
- SHA512Managed.cs
- FontDriver.cs
- Splitter.cs
- XmlChildNodes.cs
- SqlSupersetValidator.cs
- X509CertificateClaimSet.cs
- HebrewNumber.cs
- PropertyStore.cs
- SortKey.cs
- MobileFormsAuthentication.cs
- BamlLocalizationDictionary.cs
- SchemaSetCompiler.cs
- StringFormat.cs
- UpdateCommand.cs
- SafeRightsManagementHandle.cs
- FormViewInsertedEventArgs.cs
- ConfigurationValue.cs
- BooleanSwitch.cs
- Filter.cs
- SafeFileHandle.cs
- ClaimSet.cs
- BookmarkManager.cs
- DesignerLoader.cs
- TargetControlTypeAttribute.cs
- RegisteredScript.cs
- AddToCollection.cs
- ContextMenuStripGroup.cs
- BufferAllocator.cs
- SqlClientWrapperSmiStream.cs
- HandlerWithFactory.cs
- PictureBox.cs
- ReplyAdapterChannelListener.cs
- MemberMaps.cs
- FilterEventArgs.cs
- XmlDocumentFragment.cs
- CompiledXpathExpr.cs
- NetDataContractSerializer.cs
- FontUnitConverter.cs
- EventMappingSettings.cs
- TransformerTypeCollection.cs
- Types.cs
- CustomError.cs
- TextServicesPropertyRanges.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- WebPartManagerDesigner.cs
- Int32.cs
- ArraySet.cs
- TextEditorContextMenu.cs
- HtmlTitle.cs
- Guid.cs
- SafeEventLogReadHandle.cs
- SqlProviderUtilities.cs
- DataColumnPropertyDescriptor.cs
- XmlDataSource.cs
- AuthenticationConfig.cs
- XmlNamedNodeMap.cs
- manifestimages.cs
- TextContainerChangedEventArgs.cs
- DockPanel.cs
- MessageDecoder.cs
- FlowchartSizeFeature.cs