Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- FileNotFoundException.cs
- ApplicationFileParser.cs
- TransformationRules.cs
- StronglyTypedResourceBuilder.cs
- ListenerConstants.cs
- ClockGroup.cs
- LinkTarget.cs
- SchemaNamespaceManager.cs
- SelectionItemPatternIdentifiers.cs
- DefaultExpression.cs
- TextBoxBaseDesigner.cs
- ListViewContainer.cs
- SqlRowUpdatedEvent.cs
- SkipQueryOptionExpression.cs
- BaseAddressPrefixFilterElement.cs
- ServiceOperation.cs
- DebugView.cs
- NullReferenceException.cs
- CfgRule.cs
- DataPointer.cs
- Durable.cs
- RedirectionProxy.cs
- RelationshipFixer.cs
- TextSimpleMarkerProperties.cs
- PersonalizationStateQuery.cs
- ScanQueryOperator.cs
- CommonObjectSecurity.cs
- BitmapEffectGroup.cs
- FileDetails.cs
- AttachedProperty.cs
- GifBitmapDecoder.cs
- SqlSelectStatement.cs
- DataContractSerializerSection.cs
- TextServicesProperty.cs
- Timeline.cs
- XmlImplementation.cs
- TextServicesProperty.cs
- XMLDiffLoader.cs
- FileDialogCustomPlacesCollection.cs
- ShapingEngine.cs
- XPathMessageFilterElement.cs
- FormsAuthenticationTicket.cs
- TreeNode.cs
- PerformanceCounter.cs
- FacetDescription.cs
- WSAddressing10ProblemHeaderQNameFault.cs
- RichTextBoxContextMenu.cs
- NativeMethods.cs
- DataGridViewSortCompareEventArgs.cs
- SoapAttributeOverrides.cs
- WebPartHelpVerb.cs
- CompoundFileReference.cs
- XmlObjectSerializer.cs
- CompilerLocalReference.cs
- DependencyPropertyKey.cs
- RepeaterItemEventArgs.cs
- OracleException.cs
- ClientTargetSection.cs
- ProvidePropertyAttribute.cs
- ObjectDataSourceDisposingEventArgs.cs
- SQLDouble.cs
- SiteMapNodeItem.cs
- BuildManager.cs
- _Rfc2616CacheValidators.cs
- GlobalDataBindingHandler.cs
- WebServiceClientProxyGenerator.cs
- XmlMapping.cs
- FormViewUpdatedEventArgs.cs
- SharedPersonalizationStateInfo.cs
- BufferedReceiveManager.cs
- CacheMemory.cs
- ObjectPropertyMapping.cs
- ConfigurationManagerHelperFactory.cs
- UICuesEvent.cs
- ObsoleteAttribute.cs
- WebBodyFormatMessageProperty.cs
- StrongName.cs
- ValidationRuleCollection.cs
- MaterialGroup.cs
- TabControl.cs
- ArgIterator.cs
- SplineKeyFrames.cs
- ReflectPropertyDescriptor.cs
- Utils.cs
- AttributeData.cs
- Odbc32.cs
- AbstractExpressions.cs
- TextBreakpoint.cs
- PresentationSource.cs
- BitmapEncoder.cs
- Domain.cs
- RecognizerInfo.cs
- ConfigurationFileMap.cs
- TogglePatternIdentifiers.cs
- MyContact.cs
- Sentence.cs
- UserNameSecurityTokenProvider.cs
- DataServiceProcessingPipeline.cs
- InputQueue.cs
- HealthMonitoringSection.cs