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
- ScrollBarRenderer.cs
- MimeFormatter.cs
- GatewayIPAddressInformationCollection.cs
- PrtTicket_Public.cs
- UIElementPropertyUndoUnit.cs
- PrimitiveCodeDomSerializer.cs
- SqlEnums.cs
- WorkflowControlClient.cs
- InputLanguageManager.cs
- PLINQETWProvider.cs
- CodeDOMProvider.cs
- DateTimePickerDesigner.cs
- Attributes.cs
- IPEndPoint.cs
- AdapterDictionary.cs
- Transform3D.cs
- TreeView.cs
- BufferBuilder.cs
- XmlSchemaAnyAttribute.cs
- HandleTable.cs
- DocumentSequence.cs
- ListViewAutomationPeer.cs
- PtsPage.cs
- TraceFilter.cs
- DrawingAttributes.cs
- PlatformCulture.cs
- DynamicPhysicalDiscoSearcher.cs
- MenuCommand.cs
- RequestCachingSection.cs
- StructuredTypeEmitter.cs
- TreeSet.cs
- SapiRecoInterop.cs
- BitmapSizeOptions.cs
- CqlParserHelpers.cs
- ISO2022Encoding.cs
- WebPartConnectVerb.cs
- WindowsAltTab.cs
- CellPartitioner.cs
- StringTraceRecord.cs
- CurrentTimeZone.cs
- MiniLockedBorderGlyph.cs
- StylusButtonCollection.cs
- QuaternionRotation3D.cs
- ErrorTableItemStyle.cs
- BeginCreateSecurityTokenRequest.cs
- ConstraintEnumerator.cs
- PointF.cs
- MessageCredentialType.cs
- HttpResponse.cs
- TextTrailingWordEllipsis.cs
- Rijndael.cs
- TextDecoration.cs
- hresults.cs
- CacheSection.cs
- XmlElementAttributes.cs
- Rotation3D.cs
- EdmProperty.cs
- SecurityDocument.cs
- EntryPointNotFoundException.cs
- UdpAnnouncementEndpoint.cs
- SimpleRecyclingCache.cs
- HotSpot.cs
- PrintDialog.cs
- SizeAnimationBase.cs
- SoapSchemaExporter.cs
- DispatchProxy.cs
- ControlEvent.cs
- _FtpControlStream.cs
- ZipIOExtraFieldZip64Element.cs
- ToolboxDataAttribute.cs
- MsmqIntegrationProcessProtocolHandler.cs
- ReachIDocumentPaginatorSerializer.cs
- CriticalFinalizerObject.cs
- _BasicClient.cs
- FixUpCollection.cs
- TransactedBatchingBehavior.cs
- DependencySource.cs
- FixedElement.cs
- SafeLocalMemHandle.cs
- ContextMarshalException.cs
- StrongNameIdentityPermission.cs
- RewritingValidator.cs
- XmlSchemaObjectTable.cs
- TCPListener.cs
- SoapExtensionReflector.cs
- Geometry3D.cs
- EntityViewGenerationAttribute.cs
- DataGridCommandEventArgs.cs
- DataTable.cs
- ReadOnlyDataSourceView.cs
- CollectionContainer.cs
- ItemsChangedEventArgs.cs
- FormatControl.cs
- DataSourceControlBuilder.cs
- XmlMemberMapping.cs
- SpoolingTask.cs
- DataGridViewRow.cs
- MethodCallTranslator.cs
- ThicknessAnimation.cs
- ApplicationManager.cs