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
- StaticTextPointer.cs
- DataBindEngine.cs
- PropertyTabAttribute.cs
- PropertyIDSet.cs
- SqlTriggerContext.cs
- IPipelineRuntime.cs
- TableCellAutomationPeer.cs
- RelationshipType.cs
- StatusBarPanelClickEvent.cs
- XmlSchemaAttributeGroup.cs
- DeviceContext2.cs
- WebResourceAttribute.cs
- MultiView.cs
- ScopeCollection.cs
- ProcessRequestArgs.cs
- EUCJPEncoding.cs
- XmlChoiceIdentifierAttribute.cs
- GridViewColumnHeader.cs
- TransportDefaults.cs
- DelegateTypeInfo.cs
- XPathNodeHelper.cs
- PingReply.cs
- XPathBinder.cs
- Window.cs
- LayoutEditorPart.cs
- TagMapInfo.cs
- MexBindingBindingCollectionElement.cs
- HttpAsyncResult.cs
- RSAOAEPKeyExchangeDeformatter.cs
- BitmapEffectInput.cs
- HttpStaticObjectsCollectionWrapper.cs
- DesignerCategoryAttribute.cs
- HtmlHead.cs
- VScrollBar.cs
- CodeGenerator.cs
- StreamResourceInfo.cs
- EndpointInfoCollection.cs
- cookiecollection.cs
- OutKeywords.cs
- XDeferredAxisSource.cs
- PropertyGridCommands.cs
- CultureTable.cs
- IImplicitResourceProvider.cs
- UriSectionReader.cs
- TextFormatter.cs
- KeyboardNavigation.cs
- ResXResourceSet.cs
- NamespaceListProperty.cs
- XmlSchemaValidationException.cs
- CopyAttributesAction.cs
- ServicePerformanceCounters.cs
- HttpCapabilitiesBase.cs
- FaultConverter.cs
- EntityDataSourceSelectedEventArgs.cs
- PerspectiveCamera.cs
- InputBinder.cs
- ComponentDispatcherThread.cs
- SafeCryptoHandles.cs
- NativeMethods.cs
- _SafeNetHandles.cs
- DataGridViewCellFormattingEventArgs.cs
- RecognizeCompletedEventArgs.cs
- TargetParameterCountException.cs
- DataRecordInfo.cs
- PaginationProgressEventArgs.cs
- SocketInformation.cs
- WinEventQueueItem.cs
- SerializationObjectManager.cs
- Membership.cs
- OleDbParameterCollection.cs
- Debug.cs
- InstalledFontCollection.cs
- OleDbException.cs
- EpmContentSerializer.cs
- HttpException.cs
- RoleGroupCollectionEditor.cs
- XPathDocument.cs
- XmlSchemaAttributeGroupRef.cs
- ArgumentNullException.cs
- CodeCompiler.cs
- InstanceLockedException.cs
- XmlQueryContext.cs
- WebServiceHandlerFactory.cs
- ClientConfigPaths.cs
- HtmlTableCell.cs
- EditorPartChrome.cs
- SerializationBinder.cs
- MetadataSerializer.cs
- ValueProviderWrapper.cs
- ProxyWebPartConnectionCollection.cs
- MultiBindingExpression.cs
- QilIterator.cs
- UrlRoutingModule.cs
- PageRanges.cs
- SourceLineInfo.cs
- RankException.cs
- HttpRuntime.cs
- webbrowsersite.cs
- ProviderUtil.cs
- FilteredDataSetHelper.cs