Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Integration / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AddingNewEventArgs.cs
- DataGridViewImageColumn.cs
- FileChangesMonitor.cs
- ValidatedControlConverter.cs
- DataGridViewCellStyleChangedEventArgs.cs
- AuthenticationModuleElement.cs
- ExpressionBuilder.cs
- KeyboardNavigation.cs
- ManagementQuery.cs
- PerformanceCounterScope.cs
- ConfigurationStrings.cs
- TextFormatterImp.cs
- Part.cs
- IndependentlyAnimatedPropertyMetadata.cs
- ParenthesizePropertyNameAttribute.cs
- TitleStyle.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- AtomicFile.cs
- Geometry3D.cs
- BindingRestrictions.cs
- FileRecordSequence.cs
- CustomError.cs
- QueryStringHandler.cs
- RedirectionProxy.cs
- SHA1CryptoServiceProvider.cs
- HiddenFieldDesigner.cs
- WinInet.cs
- ConditionalBranch.cs
- UdpChannelListener.cs
- XmlAttributeOverrides.cs
- ContentPosition.cs
- FileReservationCollection.cs
- IsolatedStorageException.cs
- DataRelationCollection.cs
- FormsAuthenticationUserCollection.cs
- EdmProperty.cs
- XXXInfos.cs
- IQueryable.cs
- DataControlFieldCell.cs
- tooltip.cs
- SqlDataSourceCache.cs
- FunctionQuery.cs
- DragEvent.cs
- EdmTypeAttribute.cs
- RightsManagementPermission.cs
- EntityDataSourceChangingEventArgs.cs
- XmlUtil.cs
- DbConvert.cs
- SerializableAttribute.cs
- CachedPathData.cs
- XmlFormatReaderGenerator.cs
- BitHelper.cs
- XamlDesignerSerializationManager.cs
- ArrangedElementCollection.cs
- XD.cs
- OleDbConnectionInternal.cs
- ExpressionNode.cs
- EnumerableRowCollection.cs
- AbsoluteQuery.cs
- ErrorWebPart.cs
- HtmlInputRadioButton.cs
- sqlnorm.cs
- XmlQuerySequence.cs
- TargetConverter.cs
- control.ime.cs
- PropertyInformation.cs
- _AutoWebProxyScriptHelper.cs
- SoapSchemaMember.cs
- AlgoModule.cs
- XmlSecureResolver.cs
- BamlBinaryReader.cs
- connectionpool.cs
- CompModSwitches.cs
- WindowsAuthenticationEventArgs.cs
- BindingRestrictions.cs
- PrintPreviewDialog.cs
- Setter.cs
- TimeSpanSecondsConverter.cs
- TextComposition.cs
- SqlDataAdapter.cs
- DataBindingCollection.cs
- WebControlsSection.cs
- webeventbuffer.cs
- ArrayConverter.cs
- ProcessModelSection.cs
- StringValueSerializer.cs
- xml.cs
- Attributes.cs
- Base64Encoding.cs
- ColorIndependentAnimationStorage.cs
- ItemList.cs
- Switch.cs
- DetailsViewInsertEventArgs.cs
- HttpCookieCollection.cs
- WindowsRegion.cs
- TrackingAnnotationCollection.cs
- PageTheme.cs
- PolicyManager.cs
- AssemblyNameProxy.cs
- UnauthorizedWebPart.cs