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
- SHA256.cs
- InvokeMemberBinder.cs
- TreeNode.cs
- ProjectionPlanCompiler.cs
- TextTreeExtractElementUndoUnit.cs
- XmlCustomFormatter.cs
- DmlSqlGenerator.cs
- DataTableCollection.cs
- MediaTimeline.cs
- HtmlTitle.cs
- AssertFilter.cs
- BinaryMethodMessage.cs
- Popup.cs
- StreamingContext.cs
- DataError.cs
- SymbolTable.cs
- RSAPKCS1KeyExchangeFormatter.cs
- LiteralText.cs
- XmlDataSourceNodeDescriptor.cs
- ReadOnlyDictionary.cs
- ObjectListShowCommandsEventArgs.cs
- XmlAttributeCollection.cs
- XamlToRtfWriter.cs
- ManagementException.cs
- HatchBrush.cs
- WebHttpBinding.cs
- TimeSpanStorage.cs
- Exception.cs
- DataGridViewCellMouseEventArgs.cs
- TemplateKey.cs
- TextLine.cs
- DispatchChannelSink.cs
- RtfControls.cs
- TextAdaptor.cs
- AttachInfo.cs
- ParameterCollection.cs
- AvtEvent.cs
- DecimalSumAggregationOperator.cs
- DynamicValidatorEventArgs.cs
- EditorZone.cs
- BoundConstants.cs
- PaginationProgressEventArgs.cs
- FrameworkRichTextComposition.cs
- SqlParameter.cs
- ComEventsInfo.cs
- CheckBoxBaseAdapter.cs
- XmlTextReaderImpl.cs
- serverconfig.cs
- LinkButton.cs
- WebPartTransformer.cs
- ErrorLog.cs
- ClientRuntimeConfig.cs
- MsmqTransportElement.cs
- Scripts.cs
- OdbcConnectionOpen.cs
- ChildrenQuery.cs
- DbDataSourceEnumerator.cs
- LocalBuilder.cs
- InputProcessorProfilesLoader.cs
- OpenTypeLayout.cs
- ComponentSerializationService.cs
- PropertyTabAttribute.cs
- DesignSurfaceEvent.cs
- GridViewCommandEventArgs.cs
- UserControl.cs
- ButtonBaseAutomationPeer.cs
- CaseInsensitiveHashCodeProvider.cs
- altserialization.cs
- XmlToDatasetMap.cs
- DesignerDataTableBase.cs
- QilPatternFactory.cs
- OutputCacheSettingsSection.cs
- ColumnReorderedEventArgs.cs
- OdbcErrorCollection.cs
- CodeTypeConstructor.cs
- HostProtectionException.cs
- RemotingAttributes.cs
- GenericRootAutomationPeer.cs
- CodeMethodInvokeExpression.cs
- SiteMembershipCondition.cs
- StrokeCollectionConverter.cs
- ListSortDescriptionCollection.cs
- ObjectStateEntryDbDataRecord.cs
- XamlStream.cs
- LifetimeServices.cs
- EventLogger.cs
- Page.cs
- SchemaTypeEmitter.cs
- _HTTPDateParse.cs
- Stylus.cs
- DesignTimeHTMLTextWriter.cs
- ChannelManager.cs
- FrameworkContentElement.cs
- TableLayoutPanel.cs
- LinqDataSourceContextEventArgs.cs
- InheritablePropertyChangeInfo.cs
- GridView.cs
- CodeIdentifier.cs
- ItemCollectionEditor.cs
- SurrogateEncoder.cs