Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- PaintEvent.cs
- CollectionEditor.cs
- WindowPattern.cs
- SchemaElementLookUpTable.cs
- FormViewRow.cs
- RowCache.cs
- SystemIPGlobalProperties.cs
- DrawTreeNodeEventArgs.cs
- LinkButton.cs
- DataServiceKeyAttribute.cs
- SoapSchemaImporter.cs
- PtsPage.cs
- ZipIOCentralDirectoryFileHeader.cs
- MsmqBindingElementBase.cs
- _KerberosClient.cs
- StaticExtension.cs
- TableItemPattern.cs
- LiteralControl.cs
- XmlDownloadManager.cs
- SchemaNames.cs
- CompositeFontFamily.cs
- ChannelBinding.cs
- XmlCDATASection.cs
- CollectionViewGroupInternal.cs
- HtmlInputText.cs
- SafeReversePInvokeHandle.cs
- Random.cs
- PositiveTimeSpanValidatorAttribute.cs
- Zone.cs
- DelegatingTypeDescriptionProvider.cs
- WebMessageEncodingBindingElement.cs
- DeferredBinaryDeserializerExtension.cs
- ValidationErrorEventArgs.cs
- ServiceDescriptionReflector.cs
- ArraySortHelper.cs
- PartialCachingAttribute.cs
- ConsoleTraceListener.cs
- WpfPayload.cs
- PartialCachingControl.cs
- DBPropSet.cs
- ToolStripDropDownClosingEventArgs.cs
- PixelFormats.cs
- CacheHelper.cs
- CssTextWriter.cs
- ParameterBuilder.cs
- UserControlCodeDomTreeGenerator.cs
- ResourceExpression.cs
- TextServicesManager.cs
- TraceUtility.cs
- ToolStripDropDownClosingEventArgs.cs
- ConnectionOrientedTransportChannelFactory.cs
- CacheDict.cs
- SqlCacheDependencySection.cs
- X509ChainPolicy.cs
- ExpandableObjectConverter.cs
- Command.cs
- GridEntry.cs
- MailAddress.cs
- DBConcurrencyException.cs
- CodeDirectoryCompiler.cs
- DetailsViewInsertedEventArgs.cs
- PropertyCollection.cs
- CollectionChangeEventArgs.cs
- TextAdaptor.cs
- DataRowExtensions.cs
- DataListDesigner.cs
- Int32KeyFrameCollection.cs
- CardSpaceSelector.cs
- Propagator.cs
- Serializer.cs
- TextView.cs
- ModuleBuilderData.cs
- ConfigurationLoader.cs
- METAHEADER.cs
- PkcsUtils.cs
- ConversionContext.cs
- RepeaterItem.cs
- Brush.cs
- BitmapPalettes.cs
- DnsPermission.cs
- UIElement.cs
- DebugTraceHelper.cs
- TextRunCache.cs
- DetailsViewDesigner.cs
- MdImport.cs
- AdornerHitTestResult.cs
- ActivityExecutor.cs
- SQLStringStorage.cs
- DataGridViewAutoSizeModeEventArgs.cs
- SqlFacetAttribute.cs
- MatrixStack.cs
- SkewTransform.cs
- VSWCFServiceContractGenerator.cs
- FixedBufferAttribute.cs
- DesignerFrame.cs
- DocumentPaginator.cs
- UnsafeNativeMethods.cs
- TextParagraphCache.cs
- PointAnimationBase.cs
- ToolStripPanelRenderEventArgs.cs