Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / WinFormsIntegration / 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.
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
- ClientSettingsProvider.cs
- FormatterConverter.cs
- FocusChangedEventArgs.cs
- DataGridViewColumn.cs
- EventProvider.cs
- JsonClassDataContract.cs
- PersonalizationProviderHelper.cs
- ParallelTimeline.cs
- DataGridPreparingCellForEditEventArgs.cs
- StreamWriter.cs
- ADRoleFactoryConfiguration.cs
- ClientUtils.cs
- WindowsScrollBarBits.cs
- Vector3DConverter.cs
- DPTypeDescriptorContext.cs
- ForeignKeyConstraint.cs
- StreamWriter.cs
- DataError.cs
- ToolStripSeparator.cs
- ContainerParaClient.cs
- Win32SafeHandles.cs
- FontWeight.cs
- PropertyIDSet.cs
- Parsers.cs
- dataSvcMapFileLoader.cs
- HttpValueCollection.cs
- ValidationHelper.cs
- PointConverter.cs
- XmlDataSource.cs
- securitycriticaldataformultiplegetandset.cs
- QuadraticEase.cs
- IconConverter.cs
- ChildTable.cs
- EventItfInfo.cs
- SerializationTrace.cs
- DataFormats.cs
- PageRanges.cs
- TransportSecurityProtocol.cs
- ProgressBarAutomationPeer.cs
- CompilerErrorCollection.cs
- GroupBoxRenderer.cs
- TemplateControl.cs
- TypedAsyncResult.cs
- SqlUserDefinedTypeAttribute.cs
- ConditionalBranch.cs
- ProfileSettings.cs
- IListConverters.cs
- RequestCacheEntry.cs
- CompModSwitches.cs
- SmtpFailedRecipientsException.cs
- DataListCommandEventArgs.cs
- SyndicationSerializer.cs
- StringConcat.cs
- DomNameTable.cs
- SafeBuffer.cs
- SqlServices.cs
- QilNode.cs
- TagMapInfo.cs
- DataSourceView.cs
- DataContractSet.cs
- CounterSample.cs
- SchemaNotation.cs
- SchemaSetCompiler.cs
- Guid.cs
- TagPrefixAttribute.cs
- DelegateBodyWriter.cs
- PrintPreviewControl.cs
- QualificationDataAttribute.cs
- StylusPoint.cs
- Matrix3D.cs
- XmlDataLoader.cs
- TransactionScope.cs
- EntityDataSourceValidationException.cs
- FixedDocumentPaginator.cs
- DetailsViewCommandEventArgs.cs
- BinaryMethodMessage.cs
- LoginName.cs
- NamespaceList.cs
- SelectedGridItemChangedEvent.cs
- Win32KeyboardDevice.cs
- Collection.cs
- URLEditor.cs
- FileDialog.cs
- HttpCookie.cs
- EnumBuilder.cs
- SmtpSection.cs
- SystemTcpStatistics.cs
- IItemContainerGenerator.cs
- ErrorFormatterPage.cs
- WSFederationHttpBindingElement.cs
- MenuAutomationPeer.cs
- ControlTemplate.cs
- RoutedEventValueSerializer.cs
- WebEvents.cs
- SimpleType.cs
- SizeF.cs
- NullableLongAverageAggregationOperator.cs
- RightsManagementEncryptedStream.cs
- AssemblyInfo.cs
- LinkLabel.cs