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
- XmlSchemaSimpleContentRestriction.cs
- AutomationPatternInfo.cs
- WorkflowMarkupSerializer.cs
- CommandDevice.cs
- ScriptBehaviorDescriptor.cs
- HttpClientCertificate.cs
- RadioButtonRenderer.cs
- ZeroOpNode.cs
- securestring.cs
- DirectoryLocalQuery.cs
- ImageInfo.cs
- Monitor.cs
- AssemblyBuilderData.cs
- EventToken.cs
- FileRecordSequenceHelper.cs
- IPEndPointCollection.cs
- DecimalKeyFrameCollection.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- TableLayoutStyleCollection.cs
- TextSpan.cs
- ColumnReorderedEventArgs.cs
- HttpHeaderCollection.cs
- BitmapScalingModeValidation.cs
- XPathParser.cs
- RegisteredScript.cs
- FormClosedEvent.cs
- InvokeWebService.cs
- ContainerFilterService.cs
- MultiBindingExpression.cs
- AudienceUriMode.cs
- HttpWriter.cs
- WebPartRestoreVerb.cs
- LongTypeConverter.cs
- DuplexChannel.cs
- AbstractExpressions.cs
- SqlConnectionFactory.cs
- Knowncolors.cs
- NameObjectCollectionBase.cs
- EtwTrace.cs
- ServerIdentity.cs
- _AutoWebProxyScriptHelper.cs
- XNodeNavigator.cs
- SystemPens.cs
- HttpEncoder.cs
- DiagnosticsConfigurationHandler.cs
- StyleModeStack.cs
- XPathNavigatorKeyComparer.cs
- ConvertEvent.cs
- TemplatePartAttribute.cs
- Label.cs
- PartitionResolver.cs
- MouseButton.cs
- HybridObjectCache.cs
- OleStrCAMarshaler.cs
- UrlMappingCollection.cs
- httpstaticobjectscollection.cs
- ReadWriteSpinLock.cs
- QilValidationVisitor.cs
- ReferenceConverter.cs
- SynchronizedRandom.cs
- selecteditemcollection.cs
- UnwrappedTypesXmlSerializerManager.cs
- HwndHostAutomationPeer.cs
- GeometryGroup.cs
- arabicshape.cs
- sqlmetadatafactory.cs
- GlobalizationAssembly.cs
- DataControlButton.cs
- SqlTypeConverter.cs
- ConditionValidator.cs
- XmlNamespaceManager.cs
- ContextProperty.cs
- PropertyBuilder.cs
- DiscoveryEndpoint.cs
- ComplexBindingPropertiesAttribute.cs
- HtmlTable.cs
- Wildcard.cs
- AllMembershipCondition.cs
- RangeValuePattern.cs
- Pen.cs
- WebEventCodes.cs
- InvariantComparer.cs
- KeyedCollection.cs
- XamlPoint3DCollectionSerializer.cs
- ScriptServiceAttribute.cs
- ReferenceEqualityComparer.cs
- RequestQueue.cs
- MLangCodePageEncoding.cs
- EntityProviderFactory.cs
- EndpointInfo.cs
- VScrollProperties.cs
- MonthCalendar.cs
- FlowDocument.cs
- CommandBindingCollection.cs
- WebPartUserCapability.cs
- DelegateSerializationHolder.cs
- ScriptReference.cs
- JsonQNameDataContract.cs
- ArrayMergeHelper.cs
- SectionRecord.cs