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
- SecurityChannelFaultConverter.cs
- DataGridViewCellLinkedList.cs
- HtmlInputReset.cs
- KeyValuePairs.cs
- ResourceReferenceKeyNotFoundException.cs
- DocumentApplicationJournalEntry.cs
- TickBar.cs
- OuterGlowBitmapEffect.cs
- WhitespaceRule.cs
- CqlWriter.cs
- DisposableCollectionWrapper.cs
- namescope.cs
- SingleAnimationUsingKeyFrames.cs
- SqlMultiplexer.cs
- RemoteWebConfigurationHostStream.cs
- DomainConstraint.cs
- CryptoHandle.cs
- SqlClientPermission.cs
- PeerConnector.cs
- Rect3DValueSerializer.cs
- UInt32Storage.cs
- CacheDependency.cs
- AttachedAnnotationChangedEventArgs.cs
- ExeConfigurationFileMap.cs
- CallbackValidator.cs
- SHA384.cs
- StrongNameIdentityPermission.cs
- SmtpClient.cs
- PropertyMapper.cs
- ListViewUpdateEventArgs.cs
- NameScopePropertyAttribute.cs
- FormViewRow.cs
- ButtonFieldBase.cs
- RequestCachePolicyConverter.cs
- HttpListenerPrefixCollection.cs
- MediaSystem.cs
- CollectionChangeEventArgs.cs
- GenericTypeParameterBuilder.cs
- ColumnCollectionEditor.cs
- UnmanagedMarshal.cs
- ChildrenQuery.cs
- XmlPreloadedResolver.cs
- HtmlInputReset.cs
- IdentifierService.cs
- Cursor.cs
- WorkflowItemsPresenter.cs
- _TransmitFileOverlappedAsyncResult.cs
- PersonalizationEntry.cs
- DictionaryTraceRecord.cs
- TypeInitializationException.cs
- IdentifierCollection.cs
- DataObjectMethodAttribute.cs
- Material.cs
- BitmapImage.cs
- SafeCertificateContext.cs
- ServiceModelConfiguration.cs
- HierarchicalDataSourceControl.cs
- SqlResolver.cs
- ToolStripPanelRow.cs
- WorkflowRuntimeService.cs
- LocatorPart.cs
- WpfKnownTypeInvoker.cs
- CommandHelpers.cs
- RegexBoyerMoore.cs
- Focus.cs
- TypefaceMetricsCache.cs
- SoapAttributeAttribute.cs
- OrderPreservingSpoolingTask.cs
- DataGridViewCellPaintingEventArgs.cs
- CompositeTypefaceMetrics.cs
- EditingMode.cs
- Models.cs
- UrlPath.cs
- AggregateNode.cs
- ProcessProtocolHandler.cs
- XNodeValidator.cs
- GeometryHitTestResult.cs
- EntityDataReader.cs
- Converter.cs
- ParentQuery.cs
- PrintDocument.cs
- ToolTipService.cs
- NullableDecimalMinMaxAggregationOperator.cs
- AttributeInfo.cs
- UInt64Storage.cs
- Simplifier.cs
- Dynamic.cs
- ObjectDataSourceView.cs
- ProcessModelInfo.cs
- ArrayMergeHelper.cs
- DictionaryEntry.cs
- ResXResourceReader.cs
- DataServiceConfiguration.cs
- RtfToken.cs
- AssemblyHash.cs
- TextHidden.cs
- XmlWellformedWriterHelpers.cs
- PartialTrustValidationBehavior.cs
- DataFieldConverter.cs
- ColorContext.cs