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
- CallbackDebugElement.cs
- SelectorItemAutomationPeer.cs
- SiteMap.cs
- Size.cs
- GcHandle.cs
- AmbiguousMatchException.cs
- UncommonField.cs
- ImageMapEventArgs.cs
- TextBreakpoint.cs
- SystemColors.cs
- DnsElement.cs
- MatrixCamera.cs
- DateTimeUtil.cs
- RowToFieldTransformer.cs
- XhtmlBasicPageAdapter.cs
- MetadataItemSerializer.cs
- HtmlWindowCollection.cs
- XmlNamespaceMapping.cs
- TileBrush.cs
- ServiceOperationDetailViewControl.cs
- MappingItemCollection.cs
- AnnotationStore.cs
- FlowLayoutPanelDesigner.cs
- Environment.cs
- InputDevice.cs
- Transform.cs
- JsonReaderWriterFactory.cs
- WebPartTracker.cs
- Brush.cs
- ScriptMethodAttribute.cs
- Equal.cs
- DesignerActionService.cs
- OracleSqlParser.cs
- FilteredAttributeCollection.cs
- DataGridViewTopLeftHeaderCell.cs
- SqlClientPermission.cs
- QuaternionKeyFrameCollection.cs
- UpdatePanelTrigger.cs
- ZeroOpNode.cs
- MemoryRecordBuffer.cs
- StyleHelper.cs
- MatcherBuilder.cs
- AttachedAnnotation.cs
- TextTreeRootNode.cs
- unsafenativemethodsother.cs
- DataKey.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- InteropExecutor.cs
- TextElement.cs
- ImpersonationContext.cs
- LambdaCompiler.Lambda.cs
- PageThemeCodeDomTreeGenerator.cs
- GenericWebPart.cs
- diagnosticsswitches.cs
- WpfWebRequestHelper.cs
- ADMembershipUser.cs
- BitStream.cs
- RemotingServices.cs
- Visitor.cs
- QueryCursorEventArgs.cs
- NotImplementedException.cs
- CompositeFontInfo.cs
- GenericIdentity.cs
- WorkflowDesigner.cs
- RtfControlWordInfo.cs
- querybuilder.cs
- StrokeFIndices.cs
- EditingCoordinator.cs
- PrivilegeNotHeldException.cs
- PolicyException.cs
- HierarchicalDataTemplate.cs
- Helpers.cs
- DoubleCollection.cs
- RowUpdatingEventArgs.cs
- RoamingStoreFile.cs
- cache.cs
- ConfigurationValidatorAttribute.cs
- DataControlField.cs
- safesecurityhelperavalon.cs
- AssociationSet.cs
- FragmentQueryKB.cs
- METAHEADER.cs
- errorpatternmatcher.cs
- AnnotationService.cs
- HostProtectionException.cs
- NavigationCommands.cs
- DesignBindingPropertyDescriptor.cs
- ClientBuildManagerCallback.cs
- _UriTypeConverter.cs
- embossbitmapeffect.cs
- AnnouncementSendsAsyncResult.cs
- TypeUtils.cs
- ReflectionUtil.cs
- TextDecorationUnitValidation.cs
- SecurityChannelListener.cs
- ConfigXmlDocument.cs
- SecurityKeyIdentifier.cs
- CompilationSection.cs
- WmpBitmapEncoder.cs
- MemberRelationshipService.cs