Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / InteropServices / SEHException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated 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); } [System.Security.SecuritySafeCritical] // auto-generated 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
- TrimSurroundingWhitespaceAttribute.cs
- ExceptionUtil.cs
- MessageProtectionOrder.cs
- CodeFieldReferenceExpression.cs
- processwaithandle.cs
- EntityAdapter.cs
- ProfileSettings.cs
- PrePostDescendentsWalker.cs
- SafeNativeMethods.cs
- ArrayConverter.cs
- SettingsAttributeDictionary.cs
- DataGridColumnCollection.cs
- ManifestSignatureInformation.cs
- WebReferencesBuildProvider.cs
- Binding.cs
- SearchForVirtualItemEventArgs.cs
- XmlBinaryReader.cs
- ValueQuery.cs
- PanelDesigner.cs
- HeaderedContentControl.cs
- WebCategoryAttribute.cs
- ActivityExecutionContextCollection.cs
- TrackingMemoryStreamFactory.cs
- KeyValuePairs.cs
- ImageAutomationPeer.cs
- SiteMapProvider.cs
- TypeConverterHelper.cs
- Transform.cs
- ValidatorCompatibilityHelper.cs
- XmlStringTable.cs
- FileUtil.cs
- CommandLibraryHelper.cs
- RelatedPropertyManager.cs
- DataGridViewControlCollection.cs
- securitycriticaldata.cs
- VerificationException.cs
- WebPartDescriptionCollection.cs
- EdmProviderManifest.cs
- CollectionEditVerbManager.cs
- LoginNameDesigner.cs
- DataBoundControlParameterTarget.cs
- CalendarTable.cs
- UnionExpr.cs
- SectionInformation.cs
- WebPartsPersonalizationAuthorization.cs
- DetailsViewPagerRow.cs
- NonSerializedAttribute.cs
- AspNetHostingPermission.cs
- HtmlFormParameterReader.cs
- MetadataWorkspace.cs
- ReadOnlyDictionary.cs
- ReadOnlyTernaryTree.cs
- CodeNamespace.cs
- NativeCompoundFileAPIs.cs
- Padding.cs
- DataBoundControlDesigner.cs
- UnknownWrapper.cs
- NativeWindow.cs
- XmlSignificantWhitespace.cs
- OleDbTransaction.cs
- TaskFormBase.cs
- FlowLayoutSettings.cs
- MimePart.cs
- InputManager.cs
- ThreadStaticAttribute.cs
- RuntimeConfigLKG.cs
- ZoneMembershipCondition.cs
- VisualBrush.cs
- EntryIndex.cs
- XmlDownloadManager.cs
- ValueProviderWrapper.cs
- BasicKeyConstraint.cs
- _DisconnectOverlappedAsyncResult.cs
- WebPartMenuStyle.cs
- AnimationTimeline.cs
- CompositeCollectionView.cs
- PrintDialogException.cs
- ObjectNotFoundException.cs
- IpcManager.cs
- TextEditor.cs
- __Filters.cs
- BidPrivateBase.cs
- ParameterToken.cs
- FormsAuthenticationEventArgs.cs
- EntityDataSource.cs
- FreezableCollection.cs
- HtmlDocument.cs
- HttpModuleAction.cs
- SkinIDTypeConverter.cs
- DataSysAttribute.cs
- TypeInfo.cs
- ManagedIStream.cs
- xmlsaver.cs
- PeerPresenceInfo.cs
- XmlAttributeCollection.cs
- DurationConverter.cs
- AssemblyCacheEntry.cs
- DurableOperationContext.cs
- TextElementEnumerator.cs
- EncryptedData.cs