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
- DBConnection.cs
- HTTPAPI_VERSION.cs
- FamilyMap.cs
- QueryOutputWriter.cs
- WindowsGrip.cs
- StringToken.cs
- ToolBarOverflowPanel.cs
- HandlerFactoryCache.cs
- Utils.cs
- ClientBuildManagerCallback.cs
- StylusEditingBehavior.cs
- WebReferencesBuildProvider.cs
- XamlSerializer.cs
- MenuItemStyle.cs
- TextRenderer.cs
- DbConnectionPoolIdentity.cs
- TextFormatterImp.cs
- AppSettingsExpressionEditor.cs
- TabItemWrapperAutomationPeer.cs
- ItemCollection.cs
- DockProviderWrapper.cs
- DataFieldConverter.cs
- EventHandlerList.cs
- CompilerCollection.cs
- CacheOutputQuery.cs
- ExternalDataExchangeService.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- FixedBufferAttribute.cs
- OutputCacheSettings.cs
- FunctionImportMapping.cs
- TargetControlTypeAttribute.cs
- Random.cs
- DrawingGroup.cs
- PropertyExpression.cs
- TypePropertyEditor.cs
- HttpResponseHeader.cs
- CodeValidator.cs
- TraceLevelStore.cs
- MobileCapabilities.cs
- _IPv4Address.cs
- DecoderFallbackWithFailureFlag.cs
- NegatedCellConstant.cs
- SqlMethods.cs
- HMACSHA256.cs
- BitmapImage.cs
- TextBlockAutomationPeer.cs
- ComboBoxAutomationPeer.cs
- WindowsEditBox.cs
- ReferenceEqualityComparer.cs
- GcHandle.cs
- RegionIterator.cs
- TagPrefixCollection.cs
- XmlSerializer.cs
- ConcurrentBag.cs
- Panel.cs
- StylusCaptureWithinProperty.cs
- PersonalizableAttribute.cs
- Adorner.cs
- DataSourceComponent.cs
- DesignColumn.cs
- StructuredType.cs
- MenuRenderer.cs
- SqlSelectStatement.cs
- GridViewEditEventArgs.cs
- WebPartEditorOkVerb.cs
- AnimationClock.cs
- RelatedView.cs
- XmlCharCheckingReader.cs
- HtmlEmptyTagControlBuilder.cs
- EnterpriseServicesHelper.cs
- FixUpCollection.cs
- ApplicationFileCodeDomTreeGenerator.cs
- OpenFileDialog.cs
- CollectionChangedEventManager.cs
- ClosableStream.cs
- WindowsSolidBrush.cs
- CodeFieldReferenceExpression.cs
- XmlObjectSerializerReadContext.cs
- UnionExpr.cs
- ComponentConverter.cs
- MultiDataTrigger.cs
- EntityDataSource.cs
- CommandEventArgs.cs
- XmlSchemaChoice.cs
- AutomationAttributeInfo.cs
- QuaternionAnimation.cs
- BindToObject.cs
- Int32.cs
- GetPageCompletedEventArgs.cs
- ScrollEventArgs.cs
- WebPartTransformerCollection.cs
- FontWeight.cs
- CatalogZoneBase.cs
- versioninfo.cs
- RemotingException.cs
- CollectionDataContractAttribute.cs
- DecimalAnimationBase.cs
- Query.cs
- SafeLocalAllocation.cs
- DataGridViewSelectedRowCollection.cs