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
- BaseAddressElement.cs
- RichTextBox.cs
- SQLCharsStorage.cs
- FixedTextSelectionProcessor.cs
- DesignColumnCollection.cs
- IteratorFilter.cs
- HtmlElementEventArgs.cs
- AbandonedMutexException.cs
- HttpHandlerActionCollection.cs
- CodeSnippetExpression.cs
- InputLanguageManager.cs
- CodePageEncoding.cs
- FunctionDetailsReader.cs
- BridgeDataReader.cs
- ContextStack.cs
- ReferencedType.cs
- PointIndependentAnimationStorage.cs
- messageonlyhwndwrapper.cs
- BitmapMetadataBlob.cs
- PageCatalogPartDesigner.cs
- FormViewDeletedEventArgs.cs
- DesignerActionHeaderItem.cs
- DataRelationPropertyDescriptor.cs
- ExpressionNode.cs
- AppSettingsSection.cs
- WebServiceEndpoint.cs
- BaseWebProxyFinder.cs
- UserInitiatedRoutedEventPermission.cs
- path.cs
- SystemIcons.cs
- XmlReflectionMember.cs
- DocumentPage.cs
- HostDesigntimeLicenseContext.cs
- JapaneseCalendar.cs
- X509UI.cs
- TypedRowGenerator.cs
- PageWrapper.cs
- DirectoryNotFoundException.cs
- SimplePropertyEntry.cs
- TreeNodeCollectionEditor.cs
- RefreshPropertiesAttribute.cs
- PlanCompiler.cs
- FileInfo.cs
- SqlVersion.cs
- TraceXPathNavigator.cs
- StructuralType.cs
- SqlFacetAttribute.cs
- newinstructionaction.cs
- TemplateControl.cs
- ToolBarButtonClickEvent.cs
- SortAction.cs
- SpecialNameAttribute.cs
- ProfileSettings.cs
- HitTestParameters3D.cs
- SiteMapDataSourceView.cs
- PinnedBufferMemoryStream.cs
- TreePrinter.cs
- ButtonChrome.cs
- WebExceptionStatus.cs
- TraceUtils.cs
- UrlAuthorizationModule.cs
- DbExpressionBuilder.cs
- StylusButton.cs
- FloatUtil.cs
- CellQuery.cs
- SystemNetHelpers.cs
- HtmlInputImage.cs
- DesignerSerializationVisibilityAttribute.cs
- FileDetails.cs
- ModuleConfigurationInfo.cs
- WebPartTransformer.cs
- RenderOptions.cs
- OledbConnectionStringbuilder.cs
- TargetInvocationException.cs
- StringAnimationBase.cs
- CodeCompileUnit.cs
- ServiceTimeoutsBehavior.cs
- BindingMAnagerBase.cs
- LogicalTreeHelper.cs
- FrameworkPropertyMetadata.cs
- CompareInfo.cs
- LinkUtilities.cs
- KnownBoxes.cs
- AnnotationHelper.cs
- DataControlFieldTypeEditor.cs
- WebPartUtil.cs
- CopyAttributesAction.cs
- ActivityCodeDomSerializer.cs
- MarshalDirectiveException.cs
- ProfilePropertySettingsCollection.cs
- GcHandle.cs
- SqlConnectionString.cs
- DependencyObject.cs
- CodeNamespace.cs
- OdbcConnectionStringbuilder.cs
- SequentialOutput.cs
- DecimalFormatter.cs
- TrustLevelCollection.cs
- PackageRelationshipCollection.cs
- VisualTreeHelper.cs