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
- ShutDownListener.cs
- ReferencedType.cs
- ExecutedRoutedEventArgs.cs
- StateRuntime.cs
- MatrixCamera.cs
- ProcessingInstructionAction.cs
- SingleKeyFrameCollection.cs
- WindowsToolbarItemAsMenuItem.cs
- unsafenativemethodsother.cs
- OraclePermissionAttribute.cs
- CustomValidator.cs
- ExpressionLink.cs
- ImageKeyConverter.cs
- SequentialOutput.cs
- WindowsStatusBar.cs
- IdentityHolder.cs
- FixUp.cs
- DES.cs
- AccessibleObject.cs
- SHA512.cs
- FlagsAttribute.cs
- TaskFileService.cs
- PasswordBoxAutomationPeer.cs
- XmlStringTable.cs
- PositiveTimeSpanValidator.cs
- CompoundFileReference.cs
- Point4D.cs
- SingleTagSectionHandler.cs
- PerfCounterSection.cs
- SHA1.cs
- RegexNode.cs
- AdapterDictionary.cs
- Visitor.cs
- LicenseContext.cs
- AutoFocusStyle.xaml.cs
- StringStorage.cs
- WindowsRegion.cs
- DrawListViewItemEventArgs.cs
- EventSinkHelperWriter.cs
- PrintDocument.cs
- exports.cs
- LabelEditEvent.cs
- PasswordRecovery.cs
- XhtmlBasicPhoneCallAdapter.cs
- GridView.cs
- VerticalAlignConverter.cs
- StringValueSerializer.cs
- WaitHandleCannotBeOpenedException.cs
- DeviceContext.cs
- ProfileServiceManager.cs
- TextDecorationCollection.cs
- DesignerValidatorAdapter.cs
- SR.cs
- PkcsUtils.cs
- PrimaryKeyTypeConverter.cs
- WebPartCatalogCloseVerb.cs
- CreateUserWizard.cs
- SiteMapPath.cs
- DataGridLinkButton.cs
- hresults.cs
- WebColorConverter.cs
- MemberCollection.cs
- ValueQuery.cs
- MobileTextWriter.cs
- DeviceFiltersSection.cs
- HtmlShim.cs
- InkPresenter.cs
- ProxyElement.cs
- UTF8Encoding.cs
- EntityProviderServices.cs
- SchemaInfo.cs
- SqlUdtInfo.cs
- ReadOnlyDictionary.cs
- ActiveXHost.cs
- UInt64.cs
- AudioStateChangedEventArgs.cs
- InputBinding.cs
- VisualState.cs
- SingleObjectCollection.cs
- SmtpNetworkElement.cs
- ScriptRef.cs
- _NegoStream.cs
- MenuItem.cs
- TraceShell.cs
- HttpNamespaceReservationInstallComponent.cs
- Stylesheet.cs
- path.cs
- TraceSection.cs
- ThemeableAttribute.cs
- DynamicDocumentPaginator.cs
- InternalResources.cs
- NameSpaceEvent.cs
- WindowsHyperlink.cs
- SystemFonts.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- _NegoState.cs
- PreservationFileWriter.cs
- ConstraintCollection.cs
- DataBoundControl.cs
- OTFRasterizer.cs