Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ProviderMetadataCachedInformation.cs
- Int16Converter.cs
- DiscriminatorMap.cs
- SQLSingleStorage.cs
- MergeLocalizationDirectives.cs
- InternalResources.cs
- TextMetrics.cs
- ToolboxItemSnapLineBehavior.cs
- EncoderReplacementFallback.cs
- URLEditor.cs
- ChannelParameterCollection.cs
- ComplexLine.cs
- DataBindingCollectionConverter.cs
- TextEditorSelection.cs
- CompressEmulationStream.cs
- PeerNameRecord.cs
- AccessedThroughPropertyAttribute.cs
- ApplicationDirectory.cs
- NameValueSectionHandler.cs
- HScrollBar.cs
- filewebresponse.cs
- WebPartChrome.cs
- DataControlButton.cs
- Helper.cs
- templategroup.cs
- DataGridViewColumn.cs
- BridgeDataRecord.cs
- WebRequestModulesSection.cs
- DrawingState.cs
- webclient.cs
- ToolStripLabel.cs
- CompiledQuery.cs
- EasingKeyFrames.cs
- PolicyValidator.cs
- ImportOptions.cs
- Publisher.cs
- DataTemplateKey.cs
- ActivityIdHeader.cs
- DbConnectionClosed.cs
- MediaContext.cs
- TableDetailsRow.cs
- ProgressBarRenderer.cs
- SQLDecimalStorage.cs
- BmpBitmapDecoder.cs
- ServiceReference.cs
- BindingGroup.cs
- ClientSideQueueItem.cs
- AdornedElementPlaceholder.cs
- IIS7WorkerRequest.cs
- DocumentOrderQuery.cs
- DeclaredTypeElement.cs
- DefaultHttpHandler.cs
- HWStack.cs
- RuleSettingsCollection.cs
- CommandDevice.cs
- PersonalizableTypeEntry.cs
- CompilationSection.cs
- XsdDataContractExporter.cs
- PresentationAppDomainManager.cs
- Int32RectConverter.cs
- HttpModuleCollection.cs
- SortableBindingList.cs
- GPRECTF.cs
- ListDictionary.cs
- SoapIncludeAttribute.cs
- TextBoxBase.cs
- ContentValidator.cs
- LookupNode.cs
- StaticSiteMapProvider.cs
- DesignObjectWrapper.cs
- HwndSubclass.cs
- DataGridColumnDropSeparator.cs
- WindowsFont.cs
- WindowsEditBox.cs
- CounterCreationDataConverter.cs
- ProfileManager.cs
- TextDecorationCollectionConverter.cs
- ViewBase.cs
- SQLChars.cs
- EtwTrace.cs
- TextSchema.cs
- UnsafeNetInfoNativeMethods.cs
- RadioButtonRenderer.cs
- InkPresenter.cs
- ContainsRowNumberChecker.cs
- TriState.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- printdlgexmarshaler.cs
- VisualTreeHelper.cs
- TracedNativeMethods.cs
- RewritingProcessor.cs
- UrlMappingCollection.cs
- AnnotationHighlightLayer.cs
- OutputCacheSection.cs
- Utils.cs
- BitmapEffectOutputConnector.cs
- DataBindingCollection.cs
- XmlSchemaSimpleType.cs
- SafeNativeMethodsCLR.cs
- CalendarDataBindingHandler.cs