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
- MemberInfoSerializationHolder.cs
- PageCodeDomTreeGenerator.cs
- SecurityPolicySection.cs
- odbcmetadatafactory.cs
- WebPartConnectionsConnectVerb.cs
- HttpConfigurationContext.cs
- MemoryMappedFile.cs
- StateMachineSubscriptionManager.cs
- GregorianCalendar.cs
- TemplatingOptionsDialog.cs
- TdsEnums.cs
- PeerNameRecord.cs
- ServiceNameElementCollection.cs
- HttpBrowserCapabilitiesWrapper.cs
- WebPartZoneBase.cs
- PriorityQueue.cs
- CngProvider.cs
- InputManager.cs
- MenuCommandService.cs
- MetadataArtifactLoaderResource.cs
- DoubleCollectionConverter.cs
- ProgressPage.cs
- RegexRunnerFactory.cs
- Grant.cs
- Visual3DCollection.cs
- ManualResetEventSlim.cs
- NTAccount.cs
- SmiMetaDataProperty.cs
- LicenseManager.cs
- StylusDevice.cs
- SqlDeflator.cs
- SR.cs
- XmlAnyElementAttributes.cs
- DbParameterHelper.cs
- GeneralTransform3DGroup.cs
- ApplicationGesture.cs
- FormParameter.cs
- TextSimpleMarkerProperties.cs
- SignerInfo.cs
- FastEncoder.cs
- PolicyException.cs
- ComplexTypeEmitter.cs
- ListBindableAttribute.cs
- ConditionCollection.cs
- ComplexLine.cs
- SolidColorBrush.cs
- ConsoleTraceListener.cs
- Cursor.cs
- TreeViewBindingsEditorForm.cs
- _NtlmClient.cs
- CustomGrammar.cs
- LeaseManager.cs
- InfoCardConstants.cs
- ArglessEventHandlerProxy.cs
- OleDbErrorCollection.cs
- ReliableMessagingVersionConverter.cs
- UndoUnit.cs
- RsaSecurityToken.cs
- Semaphore.cs
- NestedContainer.cs
- documentsequencetextpointer.cs
- safelinkcollection.cs
- FlowPosition.cs
- SecurityTokenException.cs
- TableCellAutomationPeer.cs
- ClientProxyGenerator.cs
- FlowDocumentView.cs
- ExceptionDetail.cs
- BaseValidatorDesigner.cs
- UnsettableComboBox.cs
- ToolStripComboBox.cs
- CommonProperties.cs
- XsltQilFactory.cs
- CommandEventArgs.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- Crc32Helper.cs
- RectAnimationClockResource.cs
- ImageMap.cs
- Visual3DCollection.cs
- ComponentChangedEvent.cs
- TaskHelper.cs
- DriveNotFoundException.cs
- Subtree.cs
- errorpatternmatcher.cs
- TextBounds.cs
- _SslState.cs
- PropertyDescriptorGridEntry.cs
- DataGridAutoFormatDialog.cs
- OleDbParameterCollection.cs
- HttpServerVarsCollection.cs
- RawStylusInputCustomData.cs
- SortQuery.cs
- XmlDocument.cs
- CodeGroup.cs
- GAC.cs
- X509AsymmetricSecurityKey.cs
- ExpressionConverter.cs
- TextBoxView.cs
- JsonSerializer.cs