Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Integration / System / Windows / Integration / IntegrationExceptionEventArgs.cs / 1 / IntegrationExceptionEventArgs.cs
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
namespace System.Windows.Forms.Integration
{
///
/// Lets the user preview an exception before the exception is thrown.
///
public class IntegrationExceptionEventArgs : EventArgs
{
///
/// Initializes a new instance of the IntegrationExceptionEventArgs class.
///
public IntegrationExceptionEventArgs(bool throwException, Exception exception)
{
if (exception == null)
{
throw new ArgumentNullException(string.Format(CultureInfo.CurrentCulture, SR.Get(SRID.WFI_NullArgument), "exception"));
}
_throwException = throwException;
_exception = exception;
}
private bool _throwException;
private Exception _exception;
///
/// Determines whether the exception will be thrown.
///
public bool ThrowException
{
get
{
return _throwException;
}
set
{
_throwException = value;
}
}
///
/// Identifies the exception that occurred.
///
public Exception Exception
{
get
{
return _exception;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CodeTypeDeclaration.cs
- FreezableCollection.cs
- ConstructorExpr.cs
- PolicyLevel.cs
- DesignerView.Commands.cs
- UnaryOperationBinder.cs
- TokenCreationParameter.cs
- SmtpMail.cs
- XhtmlConformanceSection.cs
- C14NUtil.cs
- ImportStoreException.cs
- FixedHyperLink.cs
- WorkflowLayouts.cs
- ResourceDefaultValueAttribute.cs
- SetStateDesigner.cs
- ActivationArguments.cs
- ModelUIElement3D.cs
- RowType.cs
- ClientScriptManager.cs
- ObsoleteAttribute.cs
- TextChangedEventArgs.cs
- MenuEventArgs.cs
- SendMailErrorEventArgs.cs
- RuntimeResourceSet.cs
- PrintController.cs
- VisualBasicDesignerHelper.cs
- ZipPackage.cs
- _SingleItemRequestCache.cs
- CharUnicodeInfo.cs
- ConsoleEntryPoint.cs
- AutomationProperty.cs
- TrimSurroundingWhitespaceAttribute.cs
- ModelPerspective.cs
- DbConnectionPoolGroup.cs
- XPathScanner.cs
- DefaultSection.cs
- WebPartConnectionsCancelEventArgs.cs
- CompilerInfo.cs
- FormatException.cs
- VisualBasicSettingsHandler.cs
- HostedElements.cs
- Query.cs
- SymbolMethod.cs
- Color.cs
- ExpressionDumper.cs
- GridViewAutomationPeer.cs
- Internal.cs
- WebBrowserProgressChangedEventHandler.cs
- DoubleKeyFrameCollection.cs
- DoubleAnimation.cs
- CollectionTraceRecord.cs
- OletxEnlistment.cs
- SplashScreen.cs
- MergablePropertyAttribute.cs
- MaterialGroup.cs
- UpdateDelegates.Generated.cs
- SingleAnimation.cs
- StorageTypeMapping.cs
- login.cs
- ExclusiveTcpTransportManager.cs
- IdleTimeoutMonitor.cs
- ModelItemImpl.cs
- HMACSHA1.cs
- CssStyleCollection.cs
- NumericPagerField.cs
- FlowDocumentView.cs
- TextDocumentView.cs
- AssemblyCollection.cs
- CodeComment.cs
- StorageEntityTypeMapping.cs
- OpCopier.cs
- SystemKeyConverter.cs
- AttachedPropertyMethodSelector.cs
- SubclassTypeValidator.cs
- DataGridViewCellStyle.cs
- ActivityTypeCodeDomSerializer.cs
- ModelUIElement3D.cs
- Sequence.cs
- Translator.cs
- SspiNegotiationTokenProviderState.cs
- SvcMapFileLoader.cs
- ReliableSession.cs
- XmlChoiceIdentifierAttribute.cs
- QueryOutputWriter.cs
- OperationSelectorBehavior.cs
- CharEntityEncoderFallback.cs
- httpapplicationstate.cs
- ProxyFragment.cs
- WeakHashtable.cs
- ParameterToken.cs
- ToolStripAdornerWindowService.cs
- TemplatedWizardStep.cs
- WindowsMenu.cs
- HtmlTableCellCollection.cs
- AuthenticationModuleElement.cs
- TraceContext.cs
- GradientSpreadMethodValidation.cs
- WebPartCancelEventArgs.cs
- Trace.cs
- RequestCache.cs