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
- WsatConfiguration.cs
- EntityType.cs
- ProcessManager.cs
- CellTreeNode.cs
- SeverityFilter.cs
- CodeArrayIndexerExpression.cs
- HandlerMappingMemo.cs
- ConversionValidationRule.cs
- TCEAdapterGenerator.cs
- IntPtr.cs
- AttributeInfo.cs
- ItemContainerGenerator.cs
- CrossSiteScriptingValidation.cs
- PrinterUnitConvert.cs
- InstanceLockedException.cs
- FilePrompt.cs
- CacheSection.cs
- ExclusiveHandleList.cs
- SqlEnums.cs
- TypeElementCollection.cs
- recordstatescratchpad.cs
- TextTreePropertyUndoUnit.cs
- CornerRadiusConverter.cs
- DecoderFallback.cs
- TreeIterator.cs
- HandleRef.cs
- SmiEventSink_DeferedProcessing.cs
- SmtpSection.cs
- Cursors.cs
- KeyNameIdentifierClause.cs
- HelpEvent.cs
- ServiceBuildProvider.cs
- ComPlusDiagnosticTraceRecords.cs
- SQLMembershipProvider.cs
- Win32SafeHandles.cs
- ProcessModule.cs
- SchemaExporter.cs
- FormViewCommandEventArgs.cs
- MULTI_QI.cs
- HandlerWithFactory.cs
- DataGridViewColumnCollection.cs
- XmlValidatingReader.cs
- ToolConsole.cs
- RecordsAffectedEventArgs.cs
- RegexCaptureCollection.cs
- SmiGettersStream.cs
- GrammarBuilderPhrase.cs
- MenuItemBinding.cs
- ResizeBehavior.cs
- PopupRoot.cs
- XmlNavigatorFilter.cs
- CounterCreationData.cs
- KeyTimeConverter.cs
- ConfigurationManager.cs
- TileModeValidation.cs
- ReadOnlyPropertyMetadata.cs
- NoResizeSelectionBorderGlyph.cs
- XamlSerializer.cs
- StyleTypedPropertyAttribute.cs
- input.cs
- _CommandStream.cs
- DtrList.cs
- PeerTransportSecurityElement.cs
- OrthographicCamera.cs
- TwoPhaseCommit.cs
- TextParagraph.cs
- ByteAnimationUsingKeyFrames.cs
- ConnectionsZone.cs
- sqlinternaltransaction.cs
- ColumnResizeAdorner.cs
- GuidConverter.cs
- SqlNodeTypeOperators.cs
- AsymmetricKeyExchangeDeformatter.cs
- Evidence.cs
- safex509handles.cs
- Brush.cs
- AttachedPropertyMethodSelector.cs
- AsynchronousChannelMergeEnumerator.cs
- ReaderContextStackData.cs
- WebPartRestoreVerb.cs
- RequestDescription.cs
- StandardOleMarshalObject.cs
- printdlgexmarshaler.cs
- Models.cs
- EncodingFallbackAwareXmlTextWriter.cs
- TokenizerHelper.cs
- SchemaMerger.cs
- __FastResourceComparer.cs
- ScrollEvent.cs
- RecognizerBase.cs
- SimpleWorkerRequest.cs
- InitiatorServiceModelSecurityTokenRequirement.cs
- OleDbError.cs
- ReflectionHelper.cs
- securestring.cs
- ProcessHost.cs
- DesignerActionGlyph.cs
- BamlBinaryWriter.cs
- TextStore.cs
- DrawingServices.cs