Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / WinFormsIntegration / System / Windows / Integration / PropertyMappingExceptionEventArgs.cs / 1 / PropertyMappingExceptionEventArgs.cs
using System.Diagnostics.CodeAnalysis; using System.Globalization; namespace System.Windows.Forms.Integration { ////// Enables the user to see the property that threw an exception, and to preview or cancel the exception. /// public class PropertyMappingExceptionEventArgs : IntegrationExceptionEventArgs { private string _propertyName; private object _propertyValue; ////// Initializes a new instance of the PropertyMappingExceptionEventArgs class. /// public PropertyMappingExceptionEventArgs(Exception exception, string propertyName, object propertyValue) : base(false, exception) { if (exception == null) { throw new ArgumentNullException(string.Format(CultureInfo.CurrentCulture, SR.Get(SRID.WFI_NullArgument), "exception")); } if (string.IsNullOrEmpty(propertyName)) { throw new ArgumentNullException(string.Format(CultureInfo.CurrentCulture, SR.Get(SRID.WFI_ArgumentNullOrEmpty), "propertyName")); } _propertyName = propertyName; _propertyValue = propertyValue; } ////// Identifies the property that was being mapped when the exception occurred. /// public string PropertyName { get { return _propertyName; } } ////// Specifies the value of the property that was being mapped when the exception occurred. /// public object PropertyValue { get { return _propertyValue; } } } } // 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 { ////// Enables the user to see the property that threw an exception, and to preview or cancel the exception. /// public class PropertyMappingExceptionEventArgs : IntegrationExceptionEventArgs { private string _propertyName; private object _propertyValue; ////// Initializes a new instance of the PropertyMappingExceptionEventArgs class. /// public PropertyMappingExceptionEventArgs(Exception exception, string propertyName, object propertyValue) : base(false, exception) { if (exception == null) { throw new ArgumentNullException(string.Format(CultureInfo.CurrentCulture, SR.Get(SRID.WFI_NullArgument), "exception")); } if (string.IsNullOrEmpty(propertyName)) { throw new ArgumentNullException(string.Format(CultureInfo.CurrentCulture, SR.Get(SRID.WFI_ArgumentNullOrEmpty), "propertyName")); } _propertyName = propertyName; _propertyValue = propertyValue; } ////// Identifies the property that was being mapped when the exception occurred. /// public string PropertyName { get { return _propertyName; } } ////// Specifies the value of the property that was being mapped when the exception occurred. /// public object PropertyValue { get { return _propertyValue; } } } } // 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
- DataControlFieldCell.cs
- Attachment.cs
- GatewayIPAddressInformationCollection.cs
- GeometryModel3D.cs
- FileDialog_Vista.cs
- HwndHost.cs
- IconBitmapDecoder.cs
- WizardForm.cs
- _ContextAwareResult.cs
- PathTooLongException.cs
- TextTreeInsertUndoUnit.cs
- DatagridviewDisplayedBandsData.cs
- DeferrableContent.cs
- HostedTransportConfigurationBase.cs
- Odbc32.cs
- UidManager.cs
- TypeNameHelper.cs
- ServiceHostingEnvironmentSection.cs
- UIntPtr.cs
- JsonDeserializer.cs
- Attributes.cs
- GridViewPageEventArgs.cs
- ResponseStream.cs
- Triangle.cs
- UserMapPath.cs
- Misc.cs
- NetworkInformationException.cs
- TimeoutHelper.cs
- PlanCompilerUtil.cs
- MergeFilterQuery.cs
- MaskedTextBoxTextEditorDropDown.cs
- PixelShader.cs
- RtfControlWordInfo.cs
- ServerValidateEventArgs.cs
- CapabilitiesPattern.cs
- ControlBuilder.cs
- SuppressIldasmAttribute.cs
- ToolStripPanelRow.cs
- NamedPipeHostedTransportConfiguration.cs
- SymmetricKeyWrap.cs
- RelationshipEndMember.cs
- AttributeCollection.cs
- HttpWebRequestElement.cs
- XPathNodeInfoAtom.cs
- StringFormat.cs
- ArcSegment.cs
- RepeaterItemEventArgs.cs
- MdbDataFileEditor.cs
- _SecureChannel.cs
- PropertyPath.cs
- CodeTypeParameter.cs
- HttpCapabilitiesEvaluator.cs
- ContentPosition.cs
- XMLUtil.cs
- XPathScanner.cs
- ProcessThread.cs
- ContourSegment.cs
- PropertyMetadata.cs
- TableProviderWrapper.cs
- GrammarBuilderPhrase.cs
- HttpListenerContext.cs
- HyperLinkStyle.cs
- ProcessThreadCollection.cs
- XmlSchemaInfo.cs
- SqlNodeAnnotation.cs
- PresentationUIStyleResources.cs
- XmlDataSourceNodeDescriptor.cs
- TreeViewItemAutomationPeer.cs
- ProcessHostFactoryHelper.cs
- BrowserCapabilitiesCodeGenerator.cs
- StylusCollection.cs
- SaveFileDialog.cs
- ToolStripContentPanel.cs
- DataServiceRequestArgs.cs
- XamlPoint3DCollectionSerializer.cs
- HierarchicalDataSourceControl.cs
- ImageSourceValueSerializer.cs
- RegexTree.cs
- FileDialogCustomPlaces.cs
- Quaternion.cs
- CanExecuteRoutedEventArgs.cs
- ModelVisual3D.cs
- HierarchicalDataSourceControl.cs
- TimeoutStream.cs
- OneToOneMappingSerializer.cs
- PreviewKeyDownEventArgs.cs
- ParseHttpDate.cs
- FontDialog.cs
- XPathEmptyIterator.cs
- WebResourceUtil.cs
- XmlSchemaChoice.cs
- FormattedTextSymbols.cs
- PathTooLongException.cs
- ScrollViewerAutomationPeer.cs
- CallTemplateAction.cs
- CachedRequestParams.cs
- UnsafeNativeMethods.cs
- IdentitySection.cs
- RecordsAffectedEventArgs.cs
- MemoryRecordBuffer.cs