Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Console.cs
- OleDbParameter.cs
- HorizontalAlignConverter.cs
- XmlSchemaChoice.cs
- Opcode.cs
- TdsEnums.cs
- Win32.cs
- XmlDocument.cs
- RSAPKCS1SignatureDeformatter.cs
- ListViewItem.cs
- RoleManagerModule.cs
- DbQueryCommandTree.cs
- Accessible.cs
- Stack.cs
- StylusEditingBehavior.cs
- CacheRequest.cs
- ClientSettingsStore.cs
- TextPointer.cs
- RepeatButton.cs
- PromptStyle.cs
- Viewport3DAutomationPeer.cs
- HttpCookiesSection.cs
- ObfuscateAssemblyAttribute.cs
- PathSegmentCollection.cs
- UserPreferenceChangedEventArgs.cs
- ByteStream.cs
- UnSafeCharBuffer.cs
- AsymmetricSignatureFormatter.cs
- CustomErrorsSection.cs
- MouseEventArgs.cs
- RemotingAttributes.cs
- AlphabeticalEnumConverter.cs
- ComplexPropertyEntry.cs
- KoreanCalendar.cs
- HttpModulesSection.cs
- FixedTextContainer.cs
- NumericUpDown.cs
- ListView.cs
- ViewgenContext.cs
- DeviceContext2.cs
- ContextMenuStrip.cs
- ThreadPoolTaskScheduler.cs
- NamedPipeTransportSecurity.cs
- UnmanagedMemoryStream.cs
- DoubleLinkListEnumerator.cs
- XPathAxisIterator.cs
- NamespaceQuery.cs
- RSACryptoServiceProvider.cs
- MsmqBindingElementBase.cs
- DataBindingExpressionBuilder.cs
- ControlEvent.cs
- SourceInterpreter.cs
- ApplicationId.cs
- ComponentCollection.cs
- RegistryExceptionHelper.cs
- FastPropertyAccessor.cs
- ExpandCollapsePattern.cs
- PrivilegedConfigurationManager.cs
- ComponentResourceKey.cs
- DynamicPropertyHolder.cs
- NullableFloatMinMaxAggregationOperator.cs
- DotExpr.cs
- IisTraceListener.cs
- XmlSerializableServices.cs
- CodeParameterDeclarationExpressionCollection.cs
- IISMapPath.cs
- TypeElement.cs
- TextCharacters.cs
- SrgsDocument.cs
- InputLanguageEventArgs.cs
- XpsInterleavingPolicy.cs
- ModulesEntry.cs
- IISUnsafeMethods.cs
- DataSourceControlBuilder.cs
- FontFamily.cs
- ExtensionQuery.cs
- DataGridColumnCollectionEditor.cs
- UpDownBaseDesigner.cs
- GeometryGroup.cs
- IDQuery.cs
- ServiceHttpHandlerFactory.cs
- TrackBar.cs
- SetStoryboardSpeedRatio.cs
- TransactionProxy.cs
- CorrelationResolver.cs
- ConfigXmlText.cs
- Int32Collection.cs
- EffectiveValueEntry.cs
- HtmlContainerControl.cs
- RootProfilePropertySettingsCollection.cs
- BufferModeSettings.cs
- OutputCacheSettingsSection.cs
- SessionStateModule.cs
- GB18030Encoding.cs
- MemoryResponseElement.cs
- SqlPersonalizationProvider.cs
- ListMarkerLine.cs
- GridItemCollection.cs
- TreeViewEvent.cs
- Axis.cs