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
- SystemDiagnosticsSection.cs
- LocalizationParserHooks.cs
- AdornerPresentationContext.cs
- XmlTextReaderImpl.cs
- FormatException.cs
- BasicCellRelation.cs
- COM2PropertyDescriptor.cs
- ColorIndependentAnimationStorage.cs
- GridEntryCollection.cs
- DocumentSequenceHighlightLayer.cs
- AppearanceEditorPart.cs
- HttpCachePolicy.cs
- Calendar.cs
- FileStream.cs
- InputScopeAttribute.cs
- FreezableCollection.cs
- ResourceCodeDomSerializer.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- PipelineModuleStepContainer.cs
- WorkflowMarkupSerializationException.cs
- GrammarBuilderWildcard.cs
- Stylus.cs
- TextEditorLists.cs
- FeatureSupport.cs
- MainMenu.cs
- MetaModel.cs
- DetailsViewRowCollection.cs
- RawTextInputReport.cs
- ImageBrush.cs
- GPRECTF.cs
- MLangCodePageEncoding.cs
- CodeGenerator.cs
- GradientSpreadMethodValidation.cs
- TableLayoutCellPaintEventArgs.cs
- IIS7WorkerRequest.cs
- WebRequest.cs
- EventProviderTraceListener.cs
- DocumentApplication.cs
- FilteredAttributeCollection.cs
- MetadataPropertyvalue.cs
- DataReceivedEventArgs.cs
- DialogResultConverter.cs
- UrlMapping.cs
- FileDialog_Vista.cs
- SerializationException.cs
- RenderDataDrawingContext.cs
- GlyphRunDrawing.cs
- CodeExpressionCollection.cs
- X500Name.cs
- dbenumerator.cs
- __Error.cs
- MappingException.cs
- ArgIterator.cs
- OperationCanceledException.cs
- WeakEventManager.cs
- FormDocumentDesigner.cs
- TextBoxAutoCompleteSourceConverter.cs
- EncoderFallback.cs
- FlowDocumentReader.cs
- Operators.cs
- TextCharacters.cs
- StylusTip.cs
- IndexerNameAttribute.cs
- QilChoice.cs
- DragDeltaEventArgs.cs
- ChangesetResponse.cs
- TargetControlTypeCache.cs
- ImageMap.cs
- XsltArgumentList.cs
- LocalsItemDescription.cs
- InvalidProgramException.cs
- HtmlTableCellCollection.cs
- SqlGatherProducedAliases.cs
- WebPartMinimizeVerb.cs
- SingleResultAttribute.cs
- TimeSpanValidatorAttribute.cs
- NetworkStream.cs
- HtmlInputRadioButton.cs
- RequestCachePolicyConverter.cs
- ListView.cs
- FloatUtil.cs
- LocationReference.cs
- BuildDependencySet.cs
- SpeechRecognitionEngine.cs
- LogLogRecordEnumerator.cs
- ToolStripComboBox.cs
- StrokeDescriptor.cs
- XPathSingletonIterator.cs
- NodeFunctions.cs
- XamlToRtfWriter.cs
- ProcessThreadCollection.cs
- ContentIterators.cs
- TransactionTable.cs
- EntityClassGenerator.cs
- DataGridRelationshipRow.cs
- ObjectManager.cs
- WriterOutput.cs
- TextBoxRenderer.cs
- StringToken.cs
- CredentialCache.cs