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
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- DbExpressionVisitor.cs
- iisPickupDirectory.cs
- AutoCompleteStringCollection.cs
- SwitchLevelAttribute.cs
- FilteredSchemaElementLookUpTable.cs
- CombinedGeometry.cs
- contentDescriptor.cs
- MetafileEditor.cs
- ProgressBarAutomationPeer.cs
- AccessDataSourceView.cs
- MenuItemCollectionEditorDialog.cs
- IDQuery.cs
- NodeInfo.cs
- ConnectivityStatus.cs
- Attributes.cs
- StorageEntityTypeMapping.cs
- RegexRunner.cs
- TextEndOfSegment.cs
- CheckBoxRenderer.cs
- StylusButtonEventArgs.cs
- MenuItemAutomationPeer.cs
- WebPartConnectionsCancelEventArgs.cs
- SourceElementsCollection.cs
- WebPartCloseVerb.cs
- WebPartConnectionsDisconnectVerb.cs
- UxThemeWrapper.cs
- CodeDomSerializer.cs
- Environment.cs
- RestHandlerFactory.cs
- SamlAssertionKeyIdentifierClause.cs
- KnownTypesProvider.cs
- CollectionDataContract.cs
- SSmlParser.cs
- InProcStateClientManager.cs
- WebMessageEncodingElement.cs
- ProfilePropertyMetadata.cs
- ILGenerator.cs
- Attribute.cs
- SoapFormatterSinks.cs
- InputMethodStateTypeInfo.cs
- StylusOverProperty.cs
- GB18030Encoding.cs
- SimpleLine.cs
- WhiteSpaceTrimStringConverter.cs
- XmlQueryStaticData.cs
- SafeCryptContextHandle.cs
- ContentElement.cs
- RangeBase.cs
- SecurityIdentifierElement.cs
- RemotingAttributes.cs
- WebPartManager.cs
- SecurityTokenException.cs
- TypeSystem.cs
- streamingZipPartStream.cs
- SuppressMergeCheckAttribute.cs
- MetadataStore.cs
- SqlResolver.cs
- RichTextBoxConstants.cs
- ErrorHandler.cs
- BlurEffect.cs
- StrongNameIdentityPermission.cs
- XPathQilFactory.cs
- CodeArrayCreateExpression.cs
- MachineKeyValidationConverter.cs
- Dictionary.cs
- LogSwitch.cs
- UrlPath.cs
- HttpModuleCollection.cs
- SoapUnknownHeader.cs
- WebPartChrome.cs
- ErrorView.xaml.cs
- AppDomainAttributes.cs
- TrackingStringDictionary.cs
- XmlSchemaSimpleContentRestriction.cs
- StylusSystemGestureEventArgs.cs
- HashAlgorithm.cs
- DataTableClearEvent.cs
- ImageFormat.cs
- ListSortDescriptionCollection.cs
- SqlDataSourceView.cs
- BezierSegment.cs
- SerializerDescriptor.cs
- DataBoundControlHelper.cs
- ConfigurationElementProperty.cs
- DrawListViewSubItemEventArgs.cs
- ZipIOCentralDirectoryBlock.cs
- UriSection.cs
- EntityDataSourceViewSchema.cs
- DirectoryInfo.cs
- HttpCapabilitiesSectionHandler.cs
- Util.cs
- MailBnfHelper.cs
- QilGeneratorEnv.cs
- PropertyDescriptorComparer.cs
- UTF8Encoding.cs
- SizeFConverter.cs
- SystemKeyConverter.cs
- ComponentCollection.cs
- ByteKeyFrameCollection.cs