Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- MetadataException.cs
- OutgoingWebRequestContext.cs
- SmiEventSink_Default.cs
- TableMethodGenerator.cs
- QueryOutputWriter.cs
- BaseHashHelper.cs
- BindingElementCollection.cs
- NavigationWindow.cs
- ModuleConfigurationInfo.cs
- InvokeDelegate.cs
- HwndSourceParameters.cs
- WebBrowsableAttribute.cs
- ParameterBuilder.cs
- ActiveXHost.cs
- TextParaLineResult.cs
- DataObject.cs
- GridView.cs
- MSAAEventDispatcher.cs
- AdRotator.cs
- FontNameEditor.cs
- WindowsRichEditRange.cs
- ArrayElementGridEntry.cs
- DebugInfoExpression.cs
- ObjectContextServiceProvider.cs
- ControllableStoryboardAction.cs
- AnnotationResourceCollection.cs
- InstanceLockedException.cs
- IsolatedStorageFile.cs
- X509CertificateCollection.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- SurrogateDataContract.cs
- ProgramNode.cs
- TemplatedMailWebEventProvider.cs
- TraceFilter.cs
- CategoriesDocumentFormatter.cs
- SqlDataSourceRefreshSchemaForm.cs
- X509SecurityTokenAuthenticator.cs
- DataServiceSaveChangesEventArgs.cs
- XmlElementAttribute.cs
- ProgressiveCrcCalculatingStream.cs
- WorkflowPageSetupDialog.cs
- DbDataReader.cs
- BlurEffect.cs
- ValidatorUtils.cs
- DirectoryInfo.cs
- OleDbRowUpdatingEvent.cs
- IOThreadTimer.cs
- BamlTreeUpdater.cs
- _SafeNetHandles.cs
- PhysicalFontFamily.cs
- WebHttpSecurity.cs
- QilSortKey.cs
- DockAndAnchorLayout.cs
- OleDbCommandBuilder.cs
- PlatformNotSupportedException.cs
- IconBitmapDecoder.cs
- ImageIndexConverter.cs
- WebPartTransformerCollection.cs
- DataServiceProviderMethods.cs
- TabControlDesigner.cs
- WebServicesDescriptionAttribute.cs
- ScriptResourceAttribute.cs
- LoopExpression.cs
- EntityDataSourceDataSelectionPanel.designer.cs
- XamlContextStack.cs
- XmlSchema.cs
- ProvideValueServiceProvider.cs
- AssemblyCollection.cs
- MouseOverProperty.cs
- SystemEvents.cs
- DoubleAnimationUsingKeyFrames.cs
- DataSetMappper.cs
- RectValueSerializer.cs
- errorpatternmatcher.cs
- XmlSchemaAnnotated.cs
- Ref.cs
- PrimitiveXmlSerializers.cs
- ToolBarOverflowPanel.cs
- ObjectViewFactory.cs
- Timer.cs
- InputBindingCollection.cs
- StateMachine.cs
- CodeNamespaceCollection.cs
- ReaderWriterLock.cs
- XmlBaseReader.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- MemoryMappedFileSecurity.cs
- httpserverutility.cs
- ProxyHelper.cs
- TransformerConfigurationWizardBase.cs
- SchemeSettingElement.cs
- DataGridViewRowHeaderCell.cs
- AxisAngleRotation3D.cs
- TreeNodeMouseHoverEvent.cs
- EventMap.cs
- StatusBarPanelClickEvent.cs
- ScriptingRoleServiceSection.cs
- CursorConverter.cs
- EntityViewGenerationAttribute.cs
- BulletedListEventArgs.cs