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
- NamespaceDecl.cs
- SettingsAttributeDictionary.cs
- OletxVolatileEnlistment.cs
- BoundColumn.cs
- ScrollItemProviderWrapper.cs
- AudioFormatConverter.cs
- EngineSite.cs
- MachineKeySection.cs
- DataControlLinkButton.cs
- XmlElement.cs
- UIPermission.cs
- HttpHandlerAction.cs
- LineInfo.cs
- WindowsEditBox.cs
- OleDbStruct.cs
- ItemMap.cs
- SettingsBase.cs
- ColorMatrix.cs
- ObjectListDataBindEventArgs.cs
- PeerNode.cs
- XmlSchemaAttributeGroupRef.cs
- ISAPIApplicationHost.cs
- X509CertificateCollection.cs
- ExpressionBinding.cs
- ControlAdapter.cs
- MediaElementAutomationPeer.cs
- ActivityBuilderXamlWriter.cs
- ProcessRequestArgs.cs
- IisTraceWebEventProvider.cs
- MbpInfo.cs
- Helpers.cs
- XmlSchemaObjectCollection.cs
- SafeRightsManagementQueryHandle.cs
- ThrowHelper.cs
- BitmapEffectGroup.cs
- SQLDecimal.cs
- NumericExpr.cs
- Exceptions.cs
- WithParamAction.cs
- Quack.cs
- UserPreferenceChangingEventArgs.cs
- NativeCompoundFileAPIs.cs
- LineUtil.cs
- FilterElement.cs
- OracleDataReader.cs
- TrustLevelCollection.cs
- SafeSystemMetrics.cs
- KnownTypesProvider.cs
- TagMapInfo.cs
- SqlCharStream.cs
- PreviewPrintController.cs
- OracleDateTime.cs
- Transform3D.cs
- TdsParserStaticMethods.cs
- CharEntityEncoderFallback.cs
- XmlMapping.cs
- SecurityTokenProvider.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- ListSourceHelper.cs
- QueryResponse.cs
- BamlTreeUpdater.cs
- IdleTimeoutMonitor.cs
- ConnectionProviderAttribute.cs
- SerialPort.cs
- AmbiguousMatchException.cs
- LinkButton.cs
- JulianCalendar.cs
- PageBreakRecord.cs
- XmlFormatMapping.cs
- UserPersonalizationStateInfo.cs
- _NetRes.cs
- DataGridViewColumnCollection.cs
- HandleCollector.cs
- PenThread.cs
- ExeContext.cs
- EntitySqlQueryBuilder.cs
- HwndHost.cs
- SortKey.cs
- DecoratedNameAttribute.cs
- versioninfo.cs
- CommandManager.cs
- PasswordDeriveBytes.cs
- SafeProcessHandle.cs
- StreamingContext.cs
- PointLight.cs
- AutoGeneratedField.cs
- DataGridViewRowEventArgs.cs
- ContainerActivationHelper.cs
- TranslateTransform3D.cs
- ItemContainerGenerator.cs
- MergeFailedEvent.cs
- NativeRecognizer.cs
- QueuePathEditor.cs
- TableRowCollection.cs
- Viewport3DVisual.cs
- MessageProtectionOrder.cs
- KeyInterop.cs
- ProxyHwnd.cs
- UserUseLicenseDictionaryLoader.cs
- WmfPlaceableFileHeader.cs