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
- XmlSerializerAssemblyAttribute.cs
- OrCondition.cs
- XamlPathDataSerializer.cs
- ValueOfAction.cs
- IndexingContentUnit.cs
- SchemaManager.cs
- SchemaDeclBase.cs
- CachedTypeface.cs
- GestureRecognizer.cs
- MultipleViewProviderWrapper.cs
- RSACryptoServiceProvider.cs
- PolicyException.cs
- PerformanceCounterPermissionAttribute.cs
- CookieParameter.cs
- PackagePartCollection.cs
- StreamAsIStream.cs
- TitleStyle.cs
- SecurityDescriptor.cs
- ContentPlaceHolder.cs
- DBConnectionString.cs
- HttpListenerRequest.cs
- Viewport3DVisual.cs
- Bidi.cs
- JsonDeserializer.cs
- RadioButtonList.cs
- InkPresenterAutomationPeer.cs
- PathSegmentCollection.cs
- ScalarOps.cs
- ProfessionalColors.cs
- XmlSchemaSubstitutionGroup.cs
- XmlUrlResolver.cs
- UrlMappingsModule.cs
- HtmlMeta.cs
- AdornerHitTestResult.cs
- IdleTimeoutMonitor.cs
- ellipse.cs
- SevenBitStream.cs
- DispatcherHooks.cs
- PointAnimationBase.cs
- SQLDecimal.cs
- HttpWebResponse.cs
- DataAdapter.cs
- CredentialCache.cs
- BaseTemplateParser.cs
- TripleDESCryptoServiceProvider.cs
- TimeEnumHelper.cs
- DataGridColumnFloatingHeader.cs
- PrintPreviewDialog.cs
- TransformCollection.cs
- DataTrigger.cs
- Thumb.cs
- CodeCastExpression.cs
- NullExtension.cs
- EventDrivenDesigner.cs
- NetworkInformationException.cs
- HeaderedContentControl.cs
- IxmlLineInfo.cs
- NativeMethods.cs
- _NetRes.cs
- CachedRequestParams.cs
- Memoizer.cs
- HwndStylusInputProvider.cs
- TagPrefixCollection.cs
- DatePickerTextBox.cs
- WebEventCodes.cs
- RequestCacheManager.cs
- XPathCompileException.cs
- CfgRule.cs
- ListBoxItem.cs
- SafeNativeMethods.cs
- ContextMenuStrip.cs
- WindowsComboBox.cs
- SamlAuthorityBinding.cs
- ShellProvider.cs
- ObjectPersistData.cs
- UnknownWrapper.cs
- PropertyFilterAttribute.cs
- WorkflowServiceBehavior.cs
- PropertyChangingEventArgs.cs
- CompiledScopeCriteria.cs
- PolyQuadraticBezierSegment.cs
- DecoratedNameAttribute.cs
- XNodeSchemaApplier.cs
- BmpBitmapDecoder.cs
- PictureBoxDesigner.cs
- CheckBox.cs
- DispatchWrapper.cs
- ContextMenuStripGroupCollection.cs
- ValueType.cs
- PropertyInformationCollection.cs
- RegionData.cs
- CategoryAttribute.cs
- XomlDesignerLoader.cs
- BitmapEffectDrawing.cs
- PassportAuthenticationModule.cs
- InlineObject.cs
- ResolveDuplexCD1AsyncResult.cs
- SortDescription.cs
- SoapBinding.cs
- EntityDataSourceState.cs