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
- XmlDocumentType.cs
- OleDbErrorCollection.cs
- EventRoute.cs
- OrCondition.cs
- XmlBaseWriter.cs
- Region.cs
- TreeBuilderBamlTranslator.cs
- OpCodes.cs
- EndpointAddress10.cs
- DebuggerService.cs
- NegatedCellConstant.cs
- GrammarBuilderDictation.cs
- SubclassTypeValidatorAttribute.cs
- SiteMembershipCondition.cs
- ReflectPropertyDescriptor.cs
- WeakReference.cs
- InkCanvasSelectionAdorner.cs
- RequestResizeEvent.cs
- WindowsListViewGroup.cs
- Pool.cs
- CommandDesigner.cs
- XmlDocumentSerializer.cs
- PathGeometry.cs
- SHA256CryptoServiceProvider.cs
- BaseCollection.cs
- OdbcCommandBuilder.cs
- BasicViewGenerator.cs
- webproxy.cs
- PartialList.cs
- ToolboxBitmapAttribute.cs
- ReferenceTypeElement.cs
- HostExecutionContextManager.cs
- Executor.cs
- StrokeSerializer.cs
- HelpProvider.cs
- DebugHandleTracker.cs
- DataSvcMapFileSerializer.cs
- OperationCanceledException.cs
- DesignerActionUI.cs
- GridSplitter.cs
- __Filters.cs
- AsyncOperationManager.cs
- StatusBarAutomationPeer.cs
- UseLicense.cs
- MarkupObject.cs
- SymDocumentType.cs
- XmlSchemaGroup.cs
- Journal.cs
- ProfilePropertyNameValidator.cs
- WhileDesigner.cs
- XmlBindingWorker.cs
- View.cs
- ComponentCommands.cs
- Speller.cs
- TrustLevelCollection.cs
- RegionIterator.cs
- VerificationAttribute.cs
- DriveNotFoundException.cs
- DiscoveryDocument.cs
- Selection.cs
- SignatureToken.cs
- DescriptionAttribute.cs
- ActiveXHost.cs
- dbenumerator.cs
- TimeoutException.cs
- DynamicILGenerator.cs
- XPathCompileException.cs
- XamlToRtfWriter.cs
- DaylightTime.cs
- SqlDataSourceDesigner.cs
- AddInBase.cs
- AuthenticationService.cs
- ZipIORawDataFileBlock.cs
- EntityDataSourceQueryBuilder.cs
- ping.cs
- CompModSwitches.cs
- SecurityUtils.cs
- ArithmeticException.cs
- SimpleApplicationHost.cs
- ToolStripDesigner.cs
- CustomValidator.cs
- SplitterCancelEvent.cs
- CapabilitiesState.cs
- EntityCollection.cs
- ImageButton.cs
- EdmType.cs
- SQLInt64Storage.cs
- DesignerLoader.cs
- Model3DGroup.cs
- DesignerView.xaml.cs
- DataGridViewComboBoxColumnDesigner.cs
- Win32SafeHandles.cs
- TreeViewImageIndexConverter.cs
- HostedHttpTransportManager.cs
- GenericUI.cs
- BaseDataList.cs
- SRef.cs
- HandoffBehavior.cs
- ConfigurationLocation.cs
- MinimizableAttributeTypeConverter.cs