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
- DragStartedEventArgs.cs
- SizeF.cs
- PointCollection.cs
- DataFormats.cs
- TreeViewImageIndexConverter.cs
- WsiProfilesElement.cs
- FontStretch.cs
- FontConverter.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- TheQuery.cs
- WhiteSpaceTrimStringConverter.cs
- EntityConnectionStringBuilder.cs
- SpecialTypeDataContract.cs
- AssociationSetEnd.cs
- ObjectSecurityT.cs
- FreezableDefaultValueFactory.cs
- TdsParser.cs
- XmlSchemaAppInfo.cs
- XmlSchemaResource.cs
- DataGridViewCheckBoxColumn.cs
- XsltException.cs
- DataGridViewRowsRemovedEventArgs.cs
- InvalidOperationException.cs
- RuntimeHandles.cs
- CqlIdentifiers.cs
- XmlAttribute.cs
- BookmarkEventArgs.cs
- GridViewDesigner.cs
- EntityDataSourceContextCreatedEventArgs.cs
- ManipulationCompletedEventArgs.cs
- MouseActionValueSerializer.cs
- CompareValidator.cs
- ColorMap.cs
- LinqDataSourceDisposeEventArgs.cs
- Match.cs
- AttachedPropertyMethodSelector.cs
- CodeTypeReference.cs
- BamlRecordHelper.cs
- ReadOnlyDataSourceView.cs
- Tuple.cs
- DbProviderSpecificTypePropertyAttribute.cs
- CheckBoxFlatAdapter.cs
- MessagePropertyDescription.cs
- CngKeyBlobFormat.cs
- XhtmlBasicPageAdapter.cs
- DataRowComparer.cs
- X509ChainPolicy.cs
- LazyTextWriterCreator.cs
- TypeLoadException.cs
- HostVisual.cs
- SmiMetaData.cs
- FocusChangedEventArgs.cs
- XmlProcessingInstruction.cs
- DispatcherExceptionFilterEventArgs.cs
- EventLogPermissionHolder.cs
- WebBrowsableAttribute.cs
- BoundColumn.cs
- ViewKeyConstraint.cs
- BidOverLoads.cs
- DataGridViewColumnEventArgs.cs
- TraceData.cs
- ClientData.cs
- MenuItemCollectionEditor.cs
- ByteFacetDescriptionElement.cs
- DataMemberFieldEditor.cs
- Triplet.cs
- WindowsProgressbar.cs
- InteropAutomationProvider.cs
- ClientConfigurationSystem.cs
- InputManager.cs
- ComplexTypeEmitter.cs
- TextFormatterHost.cs
- QilTypeChecker.cs
- ManagementClass.cs
- BamlRecords.cs
- ResourcesBuildProvider.cs
- CollectionConverter.cs
- FormViewUpdatedEventArgs.cs
- WindowsFormsHelpers.cs
- ClientTarget.cs
- DesignColumnCollection.cs
- ChannelBinding.cs
- ActivationArguments.cs
- EditorPartCollection.cs
- PasswordPropertyTextAttribute.cs
- XmlCodeExporter.cs
- HostingEnvironmentException.cs
- BasicDesignerLoader.cs
- Compilation.cs
- TransformedBitmap.cs
- InvokePattern.cs
- XmlComment.cs
- NetSectionGroup.cs
- TCEAdapterGenerator.cs
- ColorConverter.cs
- EventBuilder.cs
- MailMessageEventArgs.cs
- MasterPageCodeDomTreeGenerator.cs
- TextModifier.cs
- StringUtil.cs