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
- GeometryGroup.cs
- BaseAddressElement.cs
- DateTimeFormatInfoScanner.cs
- TemplateManager.cs
- SimpleHandlerBuildProvider.cs
- DataGridRowsPresenter.cs
- DataKeyCollection.cs
- CapabilitiesState.cs
- WCFBuildProvider.cs
- FlowchartDesigner.xaml.cs
- DataGridViewSortCompareEventArgs.cs
- Utils.cs
- TakeQueryOptionExpression.cs
- AnimationClock.cs
- DBSchemaTable.cs
- WebDisplayNameAttribute.cs
- FixedHyperLink.cs
- StateBag.cs
- SignatureHelper.cs
- EdmPropertyAttribute.cs
- LoginCancelEventArgs.cs
- FixedTextSelectionProcessor.cs
- ConsumerConnectionPoint.cs
- TabPanel.cs
- ObjectListField.cs
- IQueryable.cs
- WebPartDeleteVerb.cs
- arc.cs
- HandlerBase.cs
- MsmqHostedTransportManager.cs
- SingleBodyParameterMessageFormatter.cs
- PlatformNotSupportedException.cs
- MethodSet.cs
- SiteMapPath.cs
- COM2ExtendedTypeConverter.cs
- BindingSourceDesigner.cs
- HtmlLink.cs
- RegexReplacement.cs
- Typeface.cs
- URLString.cs
- SecureUICommand.cs
- CatalogZoneBase.cs
- EntityRecordInfo.cs
- EventProviderWriter.cs
- TableCell.cs
- Msec.cs
- ListItemCollection.cs
- PocoEntityKeyStrategy.cs
- X509Certificate2Collection.cs
- ResolveNextArgumentWorkItem.cs
- UnsafeNativeMethodsPenimc.cs
- DataGridViewCellMouseEventArgs.cs
- HealthMonitoringSectionHelper.cs
- DataPagerFieldCollection.cs
- RootDesignerSerializerAttribute.cs
- FileSystemEventArgs.cs
- TextEditorSelection.cs
- Separator.cs
- OperatorExpressions.cs
- HScrollBar.cs
- FontStyleConverter.cs
- ConfigurationLocationCollection.cs
- TextFormatter.cs
- RelationshipSet.cs
- Connection.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- AppDomainAttributes.cs
- SoapRpcMethodAttribute.cs
- RightsManagementManager.cs
- ProtocolsSection.cs
- DataServiceQueryOfT.cs
- ConfigurationManager.cs
- ConnectivityStatus.cs
- MessagePropertyFilter.cs
- SqlDataSourceSelectingEventArgs.cs
- CodeSnippetCompileUnit.cs
- NamespaceList.cs
- DataStreamFromComStream.cs
- TableCell.cs
- InheritanceAttribute.cs
- SqlConnectionStringBuilder.cs
- ExpressionBinding.cs
- RectangleGeometry.cs
- DetailsView.cs
- Version.cs
- DelimitedListTraceListener.cs
- MultilineStringConverter.cs
- FieldToken.cs
- CodeAccessPermission.cs
- DocumentsTrace.cs
- XmlSerializableWriter.cs
- HighlightVisual.cs
- PasswordBox.cs
- PromptStyle.cs
- SharedUtils.cs
- StandardCommands.cs
- PopupRootAutomationPeer.cs
- SafeCertificateStore.cs
- GenericEnumerator.cs
- UInt16Storage.cs