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
- EditorPartChrome.cs
- PasswordPropertyTextAttribute.cs
- ImagingCache.cs
- _SSPIWrapper.cs
- XhtmlBasicPanelAdapter.cs
- WindowsListViewGroup.cs
- ListViewDeletedEventArgs.cs
- PersonalizationAdministration.cs
- SimpleWebHandlerParser.cs
- FixedDocumentSequencePaginator.cs
- WebPartTransformerAttribute.cs
- DEREncoding.cs
- EventSourceCreationData.cs
- SplitterEvent.cs
- ComponentEditorPage.cs
- FtpRequestCacheValidator.cs
- Double.cs
- TextElementCollectionHelper.cs
- AdRotator.cs
- ChildChangedEventArgs.cs
- QuotedPrintableStream.cs
- HtmlControlPersistable.cs
- ProfileModule.cs
- ToolStripRendererSwitcher.cs
- BitmapEffect.cs
- Axis.cs
- SafeNativeMethodsCLR.cs
- SiteMapHierarchicalDataSourceView.cs
- WorkflowIdleBehavior.cs
- SafeProcessHandle.cs
- Int16Converter.cs
- HttpModulesSection.cs
- EditorPartChrome.cs
- PropertyGridEditorPart.cs
- NodeLabelEditEvent.cs
- SessionViewState.cs
- BuildManager.cs
- PageRequestManager.cs
- DataGridLinkButton.cs
- TextRange.cs
- StateInitialization.cs
- Transform3DGroup.cs
- String.cs
- activationcontext.cs
- ContextStack.cs
- Pkcs7Recipient.cs
- RangeValuePattern.cs
- AVElementHelper.cs
- BinaryCommonClasses.cs
- JpegBitmapEncoder.cs
- XamlTreeBuilder.cs
- CodeSubDirectory.cs
- AssertFilter.cs
- xsdvalidator.cs
- RealProxy.cs
- DesignerRegionMouseEventArgs.cs
- IPGlobalProperties.cs
- FixedSOMPageConstructor.cs
- DBAsyncResult.cs
- AdjustableArrowCap.cs
- ClientBuildManagerCallback.cs
- ArgumentOutOfRangeException.cs
- ToolStripComboBox.cs
- ObjectAssociationEndMapping.cs
- Regex.cs
- DataServiceQuery.cs
- PasswordRecoveryDesigner.cs
- RtfControlWordInfo.cs
- EntityViewGenerationAttribute.cs
- NavigationEventArgs.cs
- PreviewPageInfo.cs
- XmlNodeChangedEventManager.cs
- ProfileParameter.cs
- BrowserInteropHelper.cs
- PersonalizationStateQuery.cs
- NoneExcludedImageIndexConverter.cs
- ActivitiesCollection.cs
- OutputCacheModule.cs
- TransactionManager.cs
- DataListItem.cs
- WebServiceHandlerFactory.cs
- SecurityIdentifierConverter.cs
- RSAProtectedConfigurationProvider.cs
- ResXFileRef.cs
- ByteStorage.cs
- TrackingSection.cs
- MonthCalendar.cs
- FixedFindEngine.cs
- HtmlDocument.cs
- Stack.cs
- StateBag.cs
- OpCodes.cs
- wmiprovider.cs
- OleDbPropertySetGuid.cs
- CellLabel.cs
- VideoDrawing.cs
- SolidColorBrush.cs
- HostProtectionException.cs
- BufferedGraphicsManager.cs
- Single.cs