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
- HandleExceptionArgs.cs
- XmlChoiceIdentifierAttribute.cs
- WebPartConnectionsConnectVerb.cs
- _SafeNetHandles.cs
- ChannelBinding.cs
- TypeGeneratedEventArgs.cs
- InfoCardSymmetricAlgorithm.cs
- SignedXml.cs
- TextDecorations.cs
- TypeLoadException.cs
- JoinTreeNode.cs
- ProxyRpc.cs
- SqlDependency.cs
- ProfileGroupSettingsCollection.cs
- ComponentEditorForm.cs
- RubberbandSelector.cs
- TemplateComponentConnector.cs
- ConsoleKeyInfo.cs
- RelOps.cs
- UnsafeNativeMethodsCLR.cs
- ConnectionProviderAttribute.cs
- PublisherIdentityPermission.cs
- InvalidateEvent.cs
- ObjectItemLoadingSessionData.cs
- relpropertyhelper.cs
- CompiledELinqQueryState.cs
- FileDialogCustomPlacesCollection.cs
- GPRECT.cs
- SoapUnknownHeader.cs
- MLangCodePageEncoding.cs
- XmlILOptimizerVisitor.cs
- SHA512.cs
- ReliabilityContractAttribute.cs
- NumericPagerField.cs
- OdbcUtils.cs
- NavigationExpr.cs
- PropertyDescriptorComparer.cs
- CharacterMetrics.cs
- CustomAttribute.cs
- DBSqlParserColumn.cs
- SerializationHelper.cs
- TemplatedMailWebEventProvider.cs
- LambdaCompiler.Binary.cs
- RoutedEventArgs.cs
- XdrBuilder.cs
- ListComponentEditorPage.cs
- SqlProcedureAttribute.cs
- BrushConverter.cs
- DirectoryRootQuery.cs
- RenderDataDrawingContext.cs
- ConsoleCancelEventArgs.cs
- DynamicDocumentPaginator.cs
- SingleAnimationUsingKeyFrames.cs
- Rect3DValueSerializer.cs
- MultiDataTrigger.cs
- CryptoApi.cs
- _emptywebproxy.cs
- PrintDialogException.cs
- ChannelCredentials.cs
- AdapterUtil.cs
- WebSysDefaultValueAttribute.cs
- ViewCellRelation.cs
- UntypedNullExpression.cs
- DataGridViewDataConnection.cs
- Logging.cs
- NamespaceCollection.cs
- ControlCachePolicy.cs
- ValueType.cs
- InputScopeConverter.cs
- MetadataArtifactLoaderComposite.cs
- GroupPartitionExpr.cs
- dbenumerator.cs
- Wizard.cs
- DmlSqlGenerator.cs
- ConfigurationProviderException.cs
- StateBag.cs
- DeferredElementTreeState.cs
- CompilerGlobalScopeAttribute.cs
- ListBoxItem.cs
- ADMembershipProvider.cs
- WindowManager.cs
- CssTextWriter.cs
- Camera.cs
- TripleDESCryptoServiceProvider.cs
- PropertyGrid.cs
- CellRelation.cs
- WebPartChrome.cs
- SecurityPolicyVersion.cs
- MessageContractMemberAttribute.cs
- StateMachineDesignerPaint.cs
- SyndicationSerializer.cs
- AppModelKnownContentFactory.cs
- ContactManager.cs
- ImageButton.cs
- RegexNode.cs
- CompModSwitches.cs
- ApplicationException.cs
- FactoryGenerator.cs
- LongValidator.cs
- LocatorGroup.cs