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
- WFItemsToSpacerVisibility.cs
- EventLogPermission.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- SingleConverter.cs
- HttpCachePolicyWrapper.cs
- InternalConfigSettingsFactory.cs
- HitTestWithPointDrawingContextWalker.cs
- SocketInformation.cs
- RightsManagementPermission.cs
- EventLogException.cs
- ClientUriBehavior.cs
- PasswordRecoveryDesigner.cs
- entityreference_tresulttype.cs
- XXXOnTypeBuilderInstantiation.cs
- ConsumerConnectionPointCollection.cs
- PropertyPathWorker.cs
- Soap12ServerProtocol.cs
- ParserOptions.cs
- PeerPresenceInfo.cs
- AppDomainUnloadedException.cs
- LockedActivityGlyph.cs
- Brushes.cs
- WebConfigurationManager.cs
- AutomationTextAttribute.cs
- DataTableNameHandler.cs
- SourceSwitch.cs
- LinqDataSourceDisposeEventArgs.cs
- BindingValueChangedEventArgs.cs
- ReferentialConstraintRoleElement.cs
- StyleTypedPropertyAttribute.cs
- ControllableStoryboardAction.cs
- CompilerInfo.cs
- OletxEnlistment.cs
- DataControlFieldHeaderCell.cs
- HttpModuleActionCollection.cs
- XamlPointCollectionSerializer.cs
- MetabaseReader.cs
- EventLevel.cs
- DataAccessException.cs
- MarkupCompilePass2.cs
- ExpressionReplacer.cs
- HtmlInputText.cs
- SizeValueSerializer.cs
- BuildManagerHost.cs
- UTF8Encoding.cs
- UnmanagedBitmapWrapper.cs
- ClrPerspective.cs
- X509ChainPolicy.cs
- GlobalProxySelection.cs
- XmlMembersMapping.cs
- PerformanceCounterCategory.cs
- CopyAttributesAction.cs
- ErrorFormatter.cs
- OdbcError.cs
- FontDialog.cs
- PartialTrustVisibleAssemblyCollection.cs
- ProfileSettings.cs
- MobileSysDescriptionAttribute.cs
- FixedTextView.cs
- XmlSchemaSimpleTypeRestriction.cs
- CaseExpr.cs
- NativeCppClassAttribute.cs
- MetadataReference.cs
- TextControlDesigner.cs
- UserPreferenceChangingEventArgs.cs
- CompareValidator.cs
- FlowDocumentView.cs
- MetadataCollection.cs
- CollectionEditor.cs
- StylusPointPropertyInfo.cs
- Int16AnimationUsingKeyFrames.cs
- TypedAsyncResult.cs
- DataRowView.cs
- ExtensionDataObject.cs
- LoaderAllocator.cs
- TrustSection.cs
- TextBoxBaseDesigner.cs
- DataRecordObjectView.cs
- WindowsScrollBar.cs
- TimeoutValidationAttribute.cs
- WebPartChrome.cs
- DynamicRenderer.cs
- DomainConstraint.cs
- DataReaderContainer.cs
- DbSourceParameterCollection.cs
- UTF8Encoding.cs
- OracleLob.cs
- AlphabeticalEnumConverter.cs
- Translator.cs
- securitycriticaldataformultiplegetandset.cs
- SQLInt16Storage.cs
- RawTextInputReport.cs
- SubMenuStyle.cs
- MessageSmuggler.cs
- OledbConnectionStringbuilder.cs
- KnownBoxes.cs
- DataGridViewElement.cs
- ChtmlTextWriter.cs
- ArrayEditor.cs
- SpeechEvent.cs