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
- JsonClassDataContract.cs
- HttpValueCollection.cs
- XmlUtil.cs
- AnnotationHelper.cs
- TimeoutHelper.cs
- MsmqInputMessagePool.cs
- GridPatternIdentifiers.cs
- BamlBinaryReader.cs
- RC2CryptoServiceProvider.cs
- MailDefinition.cs
- ListInitExpression.cs
- COM2Properties.cs
- CombinedGeometry.cs
- PathFigureCollection.cs
- InteropBitmapSource.cs
- RenderingEventArgs.cs
- StorageConditionPropertyMapping.cs
- ApplicationContext.cs
- MsmqDecodeHelper.cs
- Timeline.cs
- HttpWriter.cs
- IdnElement.cs
- XmlObjectSerializerReadContext.cs
- TargetParameterCountException.cs
- Win32SafeHandles.cs
- ResourceAssociationSet.cs
- SecurityUniqueId.cs
- ErrorWebPart.cs
- InstanceData.cs
- TagMapCollection.cs
- TextEditorThreadLocalStore.cs
- Parser.cs
- ExpressionBuilderContext.cs
- TextServicesProperty.cs
- DataObjectCopyingEventArgs.cs
- TrustSection.cs
- TextAdaptor.cs
- ControlBuilder.cs
- SecurityTokenRequirement.cs
- PrimitiveSchema.cs
- Image.cs
- ColorTransform.cs
- SqlProviderUtilities.cs
- Window.cs
- _TimerThread.cs
- KeyNotFoundException.cs
- HtmlGenericControl.cs
- XmlTextEncoder.cs
- QilNode.cs
- SqlParameter.cs
- RegionIterator.cs
- XmlSerializerSection.cs
- WebHostScriptMappingsInstallComponent.cs
- SafeRightsManagementHandle.cs
- CharAnimationUsingKeyFrames.cs
- TraceSection.cs
- MeasurementDCInfo.cs
- XsltLibrary.cs
- FileLevelControlBuilderAttribute.cs
- DataControlPagerLinkButton.cs
- StatusBarPanel.cs
- ResourceProperty.cs
- TdsParserStateObject.cs
- AttributeCollection.cs
- OleDbStruct.cs
- RequestNavigateEventArgs.cs
- ComplexTypeEmitter.cs
- SamlAttribute.cs
- TextSpanModifier.cs
- FixedPage.cs
- RectAnimation.cs
- NativeMethods.cs
- StartUpEventArgs.cs
- MetadataProperty.cs
- DecoderReplacementFallback.cs
- Italic.cs
- Screen.cs
- StyleSelector.cs
- WithStatement.cs
- WebZone.cs
- CompiledIdentityConstraint.cs
- AnnotationResource.cs
- DrawingBrush.cs
- ResolveNameEventArgs.cs
- BrowserCapabilitiesCompiler.cs
- DtrList.cs
- XmlCodeExporter.cs
- ControlCollection.cs
- SmtpNetworkElement.cs
- WindowsClientElement.cs
- MetadataItem_Static.cs
- ActivityInstanceMap.cs
- EnvelopedPkcs7.cs
- PingOptions.cs
- Point3DAnimation.cs
- Material.cs
- RectangleConverter.cs
- TranslateTransform.cs
- ProcessThread.cs
- RawMouseInputReport.cs