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
- Utils.cs
- SiteMapNode.cs
- ThreadStateException.cs
- ComponentSerializationService.cs
- CLRBindingWorker.cs
- XmlDocumentType.cs
- OneOfTypeConst.cs
- StrokeIntersection.cs
- DirectoryRedirect.cs
- Substitution.cs
- DataGridViewImageColumn.cs
- StringStorage.cs
- WebException.cs
- DataBoundControlAdapter.cs
- GridViewColumnHeader.cs
- LocalizationComments.cs
- AutomationPatternInfo.cs
- TabPage.cs
- NominalTypeEliminator.cs
- XmlAttributeCollection.cs
- ObjectIDGenerator.cs
- X509WindowsSecurityToken.cs
- Group.cs
- BaseTemplateParser.cs
- MouseButtonEventArgs.cs
- iisPickupDirectory.cs
- ObjectItemConventionAssemblyLoader.cs
- PlanCompiler.cs
- SerializationHelper.cs
- FontCacheLogic.cs
- CompiledIdentityConstraint.cs
- AsymmetricAlgorithm.cs
- FixedSOMImage.cs
- FixedHyperLink.cs
- ResponseStream.cs
- XmlSerializerOperationBehavior.cs
- Internal.cs
- ConfigXmlComment.cs
- DataObjectPastingEventArgs.cs
- CopyOfAction.cs
- AssemblyUtil.cs
- Internal.cs
- SoapCodeExporter.cs
- CodeMemberEvent.cs
- HandlerMappingMemo.cs
- KeyboardEventArgs.cs
- SecurityContext.cs
- CompositeFontFamily.cs
- InvalidCommandTreeException.cs
- DataGridViewCheckBoxColumn.cs
- TextRangeEditTables.cs
- Composition.cs
- BinHexDecoder.cs
- ControlValuePropertyAttribute.cs
- TogglePattern.cs
- EntityViewGenerationAttribute.cs
- altserialization.cs
- CompilerCollection.cs
- brushes.cs
- ConnectionConsumerAttribute.cs
- DbBuffer.cs
- RepeaterCommandEventArgs.cs
- CodeDelegateCreateExpression.cs
- AppSettingsReader.cs
- CharEntityEncoderFallback.cs
- DataGridColumnFloatingHeader.cs
- DBSchemaTable.cs
- NullToBooleanConverter.cs
- DockPattern.cs
- FontResourceCache.cs
- DataPagerFieldCollection.cs
- XmlValidatingReaderImpl.cs
- SchemaInfo.cs
- CustomAttribute.cs
- ViewStateException.cs
- FocusChangedEventArgs.cs
- DataColumnSelectionConverter.cs
- ICollection.cs
- KeyNotFoundException.cs
- SrgsItemList.cs
- CodeGroup.cs
- EncoderFallback.cs
- BindingFormattingDialog.cs
- ObjectDataSourceDisposingEventArgs.cs
- ProfileModule.cs
- RestHandler.cs
- UpdateTracker.cs
- SafeProcessHandle.cs
- RectAnimationClockResource.cs
- ToolboxItemFilterAttribute.cs
- BitmapScalingModeValidation.cs
- RegexTree.cs
- Table.cs
- ExtendedProtectionPolicy.cs
- QilStrConcatenator.cs
- SplashScreen.cs
- FacetEnabledSchemaElement.cs
- QueryConverter.cs
- NullableIntSumAggregationOperator.cs
- ListBoxItem.cs