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
- NavigationProperty.cs
- SQLInt64.cs
- ToolboxComponentsCreatedEventArgs.cs
- Calendar.cs
- SchemaAttDef.cs
- GeometryHitTestResult.cs
- SiteMapPathDesigner.cs
- ButtonRenderer.cs
- FixedTextBuilder.cs
- ButtonRenderer.cs
- ToolZone.cs
- WebMessageBodyStyleHelper.cs
- SmtpDigestAuthenticationModule.cs
- HttpHandler.cs
- TextServicesHost.cs
- StringBlob.cs
- Constraint.cs
- RSAOAEPKeyExchangeDeformatter.cs
- StrokeNodeOperations.cs
- OdbcFactory.cs
- XamlPoint3DCollectionSerializer.cs
- SelectionProcessor.cs
- RuleProcessor.cs
- DataGridViewColumn.cs
- PerfCounterSection.cs
- Package.cs
- RadioButton.cs
- XmlSchemaSimpleTypeUnion.cs
- HostingPreferredMapPath.cs
- EntityProviderFactory.cs
- ObjectListTitleAttribute.cs
- PathGeometry.cs
- TranslateTransform.cs
- DataControlImageButton.cs
- HwndHost.cs
- DataBindingCollectionConverter.cs
- SrgsElementFactory.cs
- Rethrow.cs
- MissingMemberException.cs
- StringSource.cs
- FileUtil.cs
- XmlBinaryReader.cs
- SemanticResolver.cs
- UrlPropertyAttribute.cs
- WindowsIdentity.cs
- OperatingSystem.cs
- EdmItemError.cs
- FontCollection.cs
- WindowsFormsHostAutomationPeer.cs
- LifetimeServices.cs
- HostProtectionPermission.cs
- QilDataSource.cs
- JumpItem.cs
- SqlClientFactory.cs
- ReadOnlyAttribute.cs
- Mapping.cs
- RemoteWebConfigurationHost.cs
- ProxyGenerator.cs
- ISFClipboardData.cs
- OdbcInfoMessageEvent.cs
- DesignerActionKeyboardBehavior.cs
- SafeNativeMethodsOther.cs
- OleDbConnection.cs
- XNodeSchemaApplier.cs
- AnnotationAuthorChangedEventArgs.cs
- DockAndAnchorLayout.cs
- StringUtil.cs
- Avt.cs
- RIPEMD160.cs
- UnsafeNativeMethods.cs
- LayoutUtils.cs
- FixedSOMContainer.cs
- ChtmlLinkAdapter.cs
- IconHelper.cs
- SiteMapProvider.cs
- EntityDescriptor.cs
- SqlDependencyUtils.cs
- SqlNamer.cs
- SafeNativeMethodsMilCoreApi.cs
- IntSecurity.cs
- ServiceReference.cs
- ActivityMarkupSerializationProvider.cs
- MessagePropertyVariants.cs
- ResourceAttributes.cs
- GcHandle.cs
- TextTreeDeleteContentUndoUnit.cs
- odbcmetadatacollectionnames.cs
- AnimatedTypeHelpers.cs
- RadioButton.cs
- NavigationPropertyEmitter.cs
- WindowInteropHelper.cs
- TextAction.cs
- SystemIPGlobalStatistics.cs
- BinHexEncoder.cs
- ComPlusThreadInitializer.cs
- DependencyObject.cs
- PiiTraceSource.cs
- HttpCacheVary.cs
- StorageComplexTypeMapping.cs
- RoleManagerEventArgs.cs