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
- KeyedHashAlgorithm.cs
- HttpDictionary.cs
- filewebrequest.cs
- TimelineGroup.cs
- DataGridViewColumnCollectionDialog.cs
- validation.cs
- Stackframe.cs
- AppDomainShutdownMonitor.cs
- RowToFieldTransformer.cs
- MatcherBuilder.cs
- ShaderRenderModeValidation.cs
- TextPattern.cs
- PeerToPeerException.cs
- PlainXmlWriter.cs
- ZipIORawDataFileBlock.cs
- ZoneLinkButton.cs
- XmlLoader.cs
- HtmlControl.cs
- SqlSelectStatement.cs
- XmlNamespaceManager.cs
- SelectionManager.cs
- ServiceAuthorizationManager.cs
- RotationValidation.cs
- EventDescriptor.cs
- DiscardableAttribute.cs
- WebPartVerb.cs
- SplineKeyFrames.cs
- TableRow.cs
- SmtpNtlmAuthenticationModule.cs
- ConvertEvent.cs
- CodeBinaryOperatorExpression.cs
- XamlToRtfWriter.cs
- ProviderException.cs
- SQLDouble.cs
- WeakReferenceEnumerator.cs
- CharacterShapingProperties.cs
- TemplateLookupAction.cs
- RandomDelaySendsAsyncResult.cs
- TimeZone.cs
- SqlHelper.cs
- StreamBodyWriter.cs
- XmlSortKey.cs
- ValidatorCollection.cs
- SeparatorAutomationPeer.cs
- ExtensionQuery.cs
- CacheRequest.cs
- SymmetricCryptoHandle.cs
- PolyBezierSegmentFigureLogic.cs
- pingexception.cs
- RectKeyFrameCollection.cs
- UnsafeNativeMethods.cs
- BroadcastEventHelper.cs
- SurrogateSelector.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- CodeAttributeArgument.cs
- VisualTreeHelper.cs
- UxThemeWrapper.cs
- TdsParser.cs
- ResXFileRef.cs
- ParentUndoUnit.cs
- DnsPermission.cs
- XXXInfos.cs
- DocumentGridPage.cs
- CatalogZoneBase.cs
- TreeView.cs
- ProjectionCamera.cs
- CategoryGridEntry.cs
- AndCondition.cs
- MessageQueuePermissionAttribute.cs
- NullRuntimeConfig.cs
- ContractMapping.cs
- EventLog.cs
- ReadOnlyDictionary.cs
- DocumentViewerBase.cs
- ReversePositionQuery.cs
- ToolStripSplitButton.cs
- GridLengthConverter.cs
- ComplexTypeEmitter.cs
- Classification.cs
- SequenceDesigner.cs
- DeadCharTextComposition.cs
- ConfigXmlElement.cs
- DataRowChangeEvent.cs
- Visual3D.cs
- TemplatedWizardStep.cs
- CodeTypeDelegate.cs
- SoapAttributeOverrides.cs
- FormsAuthenticationEventArgs.cs
- XNodeValidator.cs
- StrongNameKeyPair.cs
- NativeBuffer.cs
- EntityParameter.cs
- CompressedStack.cs
- Normalizer.cs
- ResetableIterator.cs
- SmtpFailedRecipientsException.cs
- SapiRecoContext.cs
- DataViewSettingCollection.cs
- TrackBar.cs
- TreeBuilder.cs