Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- RecommendedAsConfigurableAttribute.cs
- ColorTypeConverter.cs
- SequentialActivityDesigner.cs
- MatchNoneMessageFilter.cs
- ActiveXContainer.cs
- RelationHandler.cs
- BasicCellRelation.cs
- NavigationHelper.cs
- SubstitutionList.cs
- MasterPageCodeDomTreeGenerator.cs
- XslCompiledTransform.cs
- Camera.cs
- NullEntityWrapper.cs
- LookupBindingPropertiesAttribute.cs
- Material.cs
- RepeatInfo.cs
- BinaryKeyIdentifierClause.cs
- DoubleAnimationBase.cs
- ScriptReferenceEventArgs.cs
- Main.cs
- SqlReferenceCollection.cs
- Page.cs
- ClientBuildManager.cs
- RegexCharClass.cs
- StringConcat.cs
- BrushValueSerializer.cs
- XmlFormatExtensionAttribute.cs
- SoapWriter.cs
- ProjectedSlot.cs
- BinaryObjectWriter.cs
- TableItemProviderWrapper.cs
- DataGridViewRowPostPaintEventArgs.cs
- RSAPKCS1SignatureFormatter.cs
- UpdateEventArgs.cs
- EntityReference.cs
- ObjRef.cs
- AnnotationResourceChangedEventArgs.cs
- Int64KeyFrameCollection.cs
- SourceFilter.cs
- DataGridPreparingCellForEditEventArgs.cs
- TreeNodeStyle.cs
- DictationGrammar.cs
- XmlnsDefinitionAttribute.cs
- ErrorTableItemStyle.cs
- HtmlGenericControl.cs
- GeometryDrawing.cs
- Regex.cs
- MultiSelectRootGridEntry.cs
- PropertyGeneratedEventArgs.cs
- RSAPKCS1KeyExchangeFormatter.cs
- DataContractSerializerSection.cs
- OSFeature.cs
- SqlAliaser.cs
- XPathNodeList.cs
- odbcmetadatafactory.cs
- BitmapEffectrendercontext.cs
- EntityDataSourceViewSchema.cs
- MissingMemberException.cs
- TaskFormBase.cs
- HttpValueCollection.cs
- typedescriptorpermissionattribute.cs
- NullableConverter.cs
- SchemaImporterExtensionElementCollection.cs
- CollectionDataContract.cs
- UnknownBitmapDecoder.cs
- MatrixKeyFrameCollection.cs
- NamedObject.cs
- CompressEmulationStream.cs
- MethodImplAttribute.cs
- PrintDialogException.cs
- OleStrCAMarshaler.cs
- ResourceSetExpression.cs
- Base64Decoder.cs
- MailWebEventProvider.cs
- DataKeyArray.cs
- MembershipValidatePasswordEventArgs.cs
- ActiveDocumentEvent.cs
- SharedPersonalizationStateInfo.cs
- SourceCollection.cs
- CodeRemoveEventStatement.cs
- EastAsianLunisolarCalendar.cs
- ProfileProvider.cs
- Stacktrace.cs
- PointAnimationUsingKeyFrames.cs
- CompilerLocalReference.cs
- PrimitiveXmlSerializers.cs
- WindowsListViewItem.cs
- RegularExpressionValidator.cs
- CustomCategoryAttribute.cs
- Preprocessor.cs
- BitStack.cs
- FixedSOMSemanticBox.cs
- ToggleButton.cs
- IdentityNotMappedException.cs
- ServiceObjectContainer.cs
- ArglessEventHandlerProxy.cs
- CustomAttributeSerializer.cs
- WindowsGraphics.cs
- CommandValueSerializer.cs
- ImpersonateTokenRef.cs