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
- ArrayExtension.cs
- WebScriptMetadataMessage.cs
- FunctionMappingTranslator.cs
- UserControl.cs
- CurrentTimeZone.cs
- ipaddressinformationcollection.cs
- __Error.cs
- Label.cs
- AudioBase.cs
- WeakReference.cs
- X509CertificateValidationMode.cs
- LocalValueEnumerator.cs
- ContentElementAutomationPeer.cs
- RoleGroupCollection.cs
- TemplateComponentConnector.cs
- ProgressChangedEventArgs.cs
- PopupRoot.cs
- ProfilePropertyNameValidator.cs
- ExtensibleSyndicationObject.cs
- Stack.cs
- ToolboxItemCollection.cs
- XPathBinder.cs
- IndicShape.cs
- FirstMatchCodeGroup.cs
- StylusPointPropertyUnit.cs
- ChannelSinkStacks.cs
- ICollection.cs
- linebase.cs
- SelectionItemPatternIdentifiers.cs
- DbProviderServices.cs
- EditorPartCollection.cs
- XPathParser.cs
- NumberSubstitution.cs
- CompModSwitches.cs
- Function.cs
- QueryOptionExpression.cs
- FontNamesConverter.cs
- RegexBoyerMoore.cs
- ParseNumbers.cs
- DiscoveryProxy.cs
- XmlSchemaAttribute.cs
- srgsitem.cs
- AppendHelper.cs
- ReverseInheritProperty.cs
- TaskFactory.cs
- AppDomainAttributes.cs
- DPCustomTypeDescriptor.cs
- _CacheStreams.cs
- ScrollableControlDesigner.cs
- QilVisitor.cs
- AuthStoreRoleProvider.cs
- Binding.cs
- ScrollBar.cs
- MarshalDirectiveException.cs
- PrimitiveSchema.cs
- Composition.cs
- SelectionHighlightInfo.cs
- NonBatchDirectoryCompiler.cs
- BitmapEffectGeneralTransform.cs
- TagPrefixCollection.cs
- FilteredSchemaElementLookUpTable.cs
- ContentWrapperAttribute.cs
- Panel.cs
- DocumentPageTextView.cs
- XmlSchemaSimpleTypeUnion.cs
- bidPrivateBase.cs
- ProxyWebPart.cs
- IImplicitResourceProvider.cs
- TracingConnectionInitiator.cs
- ScopeElement.cs
- ProcessManager.cs
- WindowsListViewGroup.cs
- EncodingNLS.cs
- ImageCollectionCodeDomSerializer.cs
- SqlInternalConnection.cs
- PageTheme.cs
- Cursors.cs
- VirtualDirectoryMappingCollection.cs
- SemanticResolver.cs
- BasicExpressionVisitor.cs
- ContentPosition.cs
- Tile.cs
- IdentityReference.cs
- XmlAttributeProperties.cs
- ProjectionAnalyzer.cs
- TemplatePropertyEntry.cs
- GridEntry.cs
- WorkflowRuntimeServiceElement.cs
- WebControlParameterProxy.cs
- Convert.cs
- ConfigurationStrings.cs
- CollectionChangedEventManager.cs
- EditorZoneBase.cs
- XmlName.cs
- GridViewRow.cs
- TimeSpanParse.cs
- RecognizeCompletedEventArgs.cs
- WebConfigurationHostFileChange.cs
- NumericUpDown.cs
- ByteKeyFrameCollection.cs