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
- IsolatedStorageFile.cs
- DocumentViewerConstants.cs
- RightsManagementProvider.cs
- SizeAnimation.cs
- DataBoundLiteralControl.cs
- LightweightCodeGenerator.cs
- ToolStripGripRenderEventArgs.cs
- ChangeConflicts.cs
- DatagridviewDisplayedBandsData.cs
- GridViewCancelEditEventArgs.cs
- OracleCommandBuilder.cs
- FrameworkName.cs
- WorkflowOperationInvoker.cs
- SHA512Managed.cs
- TextParaClient.cs
- BaseAsyncResult.cs
- DataErrorValidationRule.cs
- NavigationProperty.cs
- GlobalizationAssembly.cs
- SettingsProviderCollection.cs
- TextLineResult.cs
- Rijndael.cs
- XmlLanguage.cs
- RelationshipDetailsCollection.cs
- DragDrop.cs
- MasterPageBuildProvider.cs
- StandardToolWindows.cs
- DataObjectMethodAttribute.cs
- ValidatedMobileControlConverter.cs
- FileSecurity.cs
- XPathNavigatorException.cs
- EmbeddedMailObject.cs
- WeakRefEnumerator.cs
- IPEndPoint.cs
- XmlDataSourceView.cs
- TemplateAction.cs
- XmlSchemaSubstitutionGroup.cs
- ColumnMapVisitor.cs
- UIntPtr.cs
- Filter.cs
- BitmapPalettes.cs
- pingexception.cs
- DataGridColumn.cs
- DataBoundControlHelper.cs
- View.cs
- SecurityPermission.cs
- ImpersonateTokenRef.cs
- UnsafeNativeMethods.cs
- DesignerProperties.cs
- CodeValidator.cs
- CancellationHandlerDesigner.cs
- FontWeightConverter.cs
- TileBrush.cs
- ReferenceEqualityComparer.cs
- TaskFileService.cs
- EventLogInternal.cs
- SQLString.cs
- CardSpaceSelector.cs
- ContextMenuAutomationPeer.cs
- Number.cs
- SafeTimerHandle.cs
- AlignmentXValidation.cs
- LayoutUtils.cs
- PropertyRecord.cs
- DataGridViewRowStateChangedEventArgs.cs
- SafePipeHandle.cs
- TableLayoutRowStyleCollection.cs
- MatrixTransform3D.cs
- EncryptedReference.cs
- Win32Native.cs
- Internal.cs
- ReadOnlyState.cs
- ClientFormsIdentity.cs
- LookupNode.cs
- Normalization.cs
- PeerApplicationLaunchInfo.cs
- SignerInfo.cs
- SecureConversationServiceElement.cs
- SizeIndependentAnimationStorage.cs
- TextEditorTyping.cs
- KeyToListMap.cs
- HttpWriter.cs
- TextSpanModifier.cs
- DoubleLinkListEnumerator.cs
- UpdatePanelTrigger.cs
- DataGridViewTextBoxCell.cs
- TabControlToolboxItem.cs
- PerfCounters.cs
- UnsafeNativeMethods.cs
- DetailsViewPageEventArgs.cs
- Sentence.cs
- SqlDependencyListener.cs
- ListViewDeleteEventArgs.cs
- XmlSchemaProviderAttribute.cs
- CalendarTable.cs
- XhtmlTextWriter.cs
- UrlPath.cs
- Cell.cs
- XmlEventCache.cs
- FileDialog.cs