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
- Predicate.cs
- RadioButtonBaseAdapter.cs
- IisTraceListener.cs
- x509utils.cs
- PointCollection.cs
- ListViewDeletedEventArgs.cs
- Crc32Helper.cs
- AudioSignalProblemOccurredEventArgs.cs
- PagesSection.cs
- RbTree.cs
- TableRow.cs
- SiteMapHierarchicalDataSourceView.cs
- MobileContainerDesigner.cs
- StorageModelBuildProvider.cs
- GuidConverter.cs
- RequestCachingSection.cs
- SoapAttributes.cs
- FloaterBaseParaClient.cs
- ToolStripManager.cs
- ReadingWritingEntityEventArgs.cs
- WebPartCollection.cs
- SafeBitVector32.cs
- MsmqHostedTransportManager.cs
- XmlSchemaAll.cs
- InputProcessorProfilesLoader.cs
- EnumValidator.cs
- NullEntityWrapper.cs
- NameTable.cs
- PrincipalPermission.cs
- TextContainer.cs
- ClientType.cs
- RadioButtonRenderer.cs
- SimpleApplicationHost.cs
- KeyedCollection.cs
- DelayedRegex.cs
- DomNameTable.cs
- NotifyParentPropertyAttribute.cs
- EdmMember.cs
- DeadCharTextComposition.cs
- _OverlappedAsyncResult.cs
- CachedPathData.cs
- PnrpPeerResolverElement.cs
- DataException.cs
- KnownBoxes.cs
- Int16AnimationUsingKeyFrames.cs
- ItemsPresenter.cs
- CollectionViewProxy.cs
- FileRecordSequence.cs
- TypeDependencyAttribute.cs
- TableSectionStyle.cs
- ThreadAbortException.cs
- ElementMarkupObject.cs
- PageEventArgs.cs
- NumberSubstitution.cs
- CalculatedColumn.cs
- XmlValidatingReaderImpl.cs
- ScrollViewerAutomationPeer.cs
- Error.cs
- SafeRightsManagementHandle.cs
- PerformanceCountersElement.cs
- AnnotationAuthorChangedEventArgs.cs
- mongolianshape.cs
- CachedFontFace.cs
- ResXResourceWriter.cs
- SqlCacheDependencyDatabaseCollection.cs
- DataRowCollection.cs
- MatrixTransform.cs
- XmlDeclaration.cs
- StaticExtension.cs
- HandlerBase.cs
- Error.cs
- TabRenderer.cs
- ValidatingPropertiesEventArgs.cs
- EntityModelSchemaGenerator.cs
- ProviderConnectionPoint.cs
- SecureStringHasher.cs
- XmlnsDictionary.cs
- VScrollBar.cs
- CallSiteHelpers.cs
- IIS7UserPrincipal.cs
- ChildDocumentBlock.cs
- DataDocumentXPathNavigator.cs
- Image.cs
- SecurityProtocolCorrelationState.cs
- TypeGeneratedEventArgs.cs
- ResetableIterator.cs
- DiscoveryViaBehavior.cs
- ProgressBarBrushConverter.cs
- SpeechRecognitionEngine.cs
- SafeRightsManagementPubHandle.cs
- PageSettings.cs
- DataGridRowDetailsEventArgs.cs
- Parsers.cs
- SerializationAttributes.cs
- DomainUpDown.cs
- TreeView.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- CompressEmulationStream.cs
- StylusPoint.cs
- TypeUnloadedException.cs