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
- DesigntimeLicenseContext.cs
- ElementsClipboardData.cs
- CryptoHelper.cs
- XPathParser.cs
- DeclaredTypeValidator.cs
- DbProviderFactories.cs
- SHA1.cs
- LineSegment.cs
- RtfToXamlReader.cs
- CompositionTarget.cs
- HashStream.cs
- IndicShape.cs
- DbResourceAllocator.cs
- WebBrowserNavigatingEventHandler.cs
- FrameworkPropertyMetadata.cs
- ProcessModuleDesigner.cs
- ToolBarButton.cs
- FormViewPageEventArgs.cs
- DBNull.cs
- SourceFileBuildProvider.cs
- WebPartCloseVerb.cs
- DoubleCollectionValueSerializer.cs
- NumericUpDownAccelerationCollection.cs
- PeerNameRecordCollection.cs
- BodyGlyph.cs
- TypeNameHelper.cs
- DebugHandleTracker.cs
- RolePrincipal.cs
- XPathNodeIterator.cs
- CodeGeneratorOptions.cs
- InstanceCreationEditor.cs
- QilCloneVisitor.cs
- SQLDecimalStorage.cs
- FunctionImportMapping.cs
- MessagePropertyAttribute.cs
- login.cs
- Task.cs
- SizeIndependentAnimationStorage.cs
- PolygonHotSpot.cs
- ReadOnlyPropertyMetadata.cs
- LeafCellTreeNode.cs
- CompilerCollection.cs
- COM2ICategorizePropertiesHandler.cs
- StopStoryboard.cs
- QilScopedVisitor.cs
- StatusBarPanelClickEvent.cs
- HWStack.cs
- AppDomainGrammarProxy.cs
- BamlResourceSerializer.cs
- OneOfScalarConst.cs
- TextEditorThreadLocalStore.cs
- AppDomainEvidenceFactory.cs
- TcpHostedTransportConfiguration.cs
- SqlDataRecord.cs
- DynamicRenderer.cs
- ButtonBase.cs
- BoolExpr.cs
- CodeTypeMemberCollection.cs
- figurelength.cs
- NativeWindow.cs
- TextUtf8RawTextWriter.cs
- RemoteWebConfigurationHost.cs
- XPathArrayIterator.cs
- RichTextBox.cs
- CharConverter.cs
- Int16AnimationUsingKeyFrames.cs
- DecoderFallback.cs
- DataReaderContainer.cs
- SqlExpressionNullability.cs
- VoiceInfo.cs
- GuidelineSet.cs
- DefaultSerializationProviderAttribute.cs
- BlockUIContainer.cs
- FileUtil.cs
- EasingKeyFrames.cs
- EntityDataSourceDataSelection.cs
- MethodToken.cs
- Schema.cs
- StateMachine.cs
- CompiledAction.cs
- HelpInfo.cs
- AnimationException.cs
- ContextStack.cs
- FacetChecker.cs
- ADMembershipUser.cs
- WebPartMovingEventArgs.cs
- HScrollBar.cs
- ScriptControlManager.cs
- FixedSOMLineCollection.cs
- StateDesigner.cs
- AssociatedControlConverter.cs
- Viewport3DAutomationPeer.cs
- EntityFunctions.cs
- Rect.cs
- IndexerNameAttribute.cs
- TabControlEvent.cs
- SelectedGridItemChangedEvent.cs
- _NetRes.cs
- QilName.cs
- ReadWriteControlDesigner.cs