Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / InteropServices / SEHException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated 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); } [System.Security.SecuritySafeCritical] // auto-generated 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
- DataGridViewSelectedColumnCollection.cs
- SqlConnectionFactory.cs
- DataMemberFieldConverter.cs
- WmlCalendarAdapter.cs
- BindingMemberInfo.cs
- NoResizeSelectionBorderGlyph.cs
- IdentityReference.cs
- SqlClientMetaDataCollectionNames.cs
- COM2Properties.cs
- MissingMethodException.cs
- Brush.cs
- SchemaDeclBase.cs
- ToolZone.cs
- HTMLTextWriter.cs
- TextRunTypographyProperties.cs
- RemotingSurrogateSelector.cs
- PEFileEvidenceFactory.cs
- ChildTable.cs
- WebPartCancelEventArgs.cs
- WebPartConnection.cs
- Transform.cs
- ListViewItem.cs
- TemplateApplicationHelper.cs
- MenuItemBinding.cs
- TableCell.cs
- DefaultTraceListener.cs
- x509store.cs
- InfoCardArgumentException.cs
- SingleAnimationUsingKeyFrames.cs
- EmbeddedObject.cs
- SmtpReplyReaderFactory.cs
- OpCellTreeNode.cs
- ImageBrush.cs
- WebPartConnectionsCloseVerb.cs
- AlignmentYValidation.cs
- baseshape.cs
- PathGradientBrush.cs
- StubHelpers.cs
- BackStopAuthenticationModule.cs
- RemotingClientProxy.cs
- Descriptor.cs
- AutomationProperty.cs
- Parallel.cs
- ExceptQueryOperator.cs
- CustomError.cs
- Message.cs
- RestHandler.cs
- FloatUtil.cs
- Model3D.cs
- BrowserTree.cs
- NetSectionGroup.cs
- ConfigurationSectionGroupCollection.cs
- MemberAccessException.cs
- xmlformatgeneratorstatics.cs
- XamlToRtfParser.cs
- IdentifierService.cs
- PolyLineSegment.cs
- SmtpFailedRecipientException.cs
- GeometryHitTestResult.cs
- DataGridViewComboBoxCell.cs
- GPPOINT.cs
- CommandDevice.cs
- CopyOnWriteList.cs
- ConfigXmlElement.cs
- CollectionDataContractAttribute.cs
- OutputCacheSection.cs
- SplitContainer.cs
- ConnectionProviderAttribute.cs
- TimeSpanValidator.cs
- ETagAttribute.cs
- FormParameter.cs
- XPathBinder.cs
- SupportsPreviewControlAttribute.cs
- PinnedBufferMemoryStream.cs
- TCPClient.cs
- XmlDocumentFragment.cs
- CounterSampleCalculator.cs
- RequestCacheValidator.cs
- ValidatingPropertiesEventArgs.cs
- BehaviorDragDropEventArgs.cs
- Queue.cs
- XmlDataSourceNodeDescriptor.cs
- PauseStoryboard.cs
- SafeIUnknown.cs
- ProgressiveCrcCalculatingStream.cs
- EntityDataSourceMemberPath.cs
- XmlHierarchicalDataSourceView.cs
- SystemPens.cs
- DesignerObjectListAdapter.cs
- GenericWebPart.cs
- DataBindEngine.cs
- HtmlString.cs
- SmiEventSink_DeferedProcessing.cs
- Focus.cs
- WebPartConnectionsCancelVerb.cs
- SemanticValue.cs
- KnowledgeBase.cs
- NavigationExpr.cs
- DuplicateDetector.cs
- DataGridViewColumnCollection.cs