Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ObjectRef.cs
- GenericIdentity.cs
- Matrix3DConverter.cs
- AutomationPatternInfo.cs
- XmlQueryCardinality.cs
- UserValidatedEventArgs.cs
- Pens.cs
- SecurityManager.cs
- TransformPattern.cs
- WebPartDeleteVerb.cs
- UIAgentCrashedException.cs
- DataRowChangeEvent.cs
- Transactions.cs
- Error.cs
- DependsOnAttribute.cs
- Point.cs
- ReachSerializableProperties.cs
- RequestQueue.cs
- DocumentEventArgs.cs
- OutOfProcStateClientManager.cs
- Pen.cs
- NamedObject.cs
- BitmapEffect.cs
- MultiAsyncResult.cs
- CapabilitiesAssignment.cs
- JavaScriptString.cs
- SecurityContextCookieSerializer.cs
- AsyncResult.cs
- SchemaDeclBase.cs
- Calendar.cs
- SectionUpdates.cs
- StylusPoint.cs
- AppDomainEvidenceFactory.cs
- DataGridViewRowsRemovedEventArgs.cs
- HwndTarget.cs
- CodeTypeParameter.cs
- DeploymentExceptionMapper.cs
- DataContractSerializerServiceBehavior.cs
- ListViewDeleteEventArgs.cs
- XmlSerializerSection.cs
- ReferencedCollectionType.cs
- SafePointer.cs
- Block.cs
- StreamInfo.cs
- AuthenticatingEventArgs.cs
- XamlPointCollectionSerializer.cs
- SimpleWorkerRequest.cs
- XamlStyleSerializer.cs
- MenuStrip.cs
- HWStack.cs
- LoadRetryAsyncResult.cs
- PropertyFilterAttribute.cs
- StrokeCollection2.cs
- URLEditor.cs
- QueryableDataSourceView.cs
- TypeUsageBuilder.cs
- EpmContentSerializerBase.cs
- XmlLangPropertyAttribute.cs
- SaveWorkflowCommand.cs
- CqlGenerator.cs
- ProgressBar.cs
- GlyphsSerializer.cs
- RealizationDrawingContextWalker.cs
- TextInfo.cs
- SoapDocumentMethodAttribute.cs
- ObjectDataSourceEventArgs.cs
- CriticalExceptions.cs
- VisualBrush.cs
- ItemMap.cs
- OptionalMessageQuery.cs
- DataTableReaderListener.cs
- MediaTimeline.cs
- FileSystemWatcher.cs
- RuntimeHandles.cs
- TimeIntervalCollection.cs
- XPathEmptyIterator.cs
- DefinitionBase.cs
- SoapSchemaMember.cs
- StateRuntime.cs
- WebServiceClientProxyGenerator.cs
- SqlWebEventProvider.cs
- PathFigureCollection.cs
- XmlSchemaParticle.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- TypeEnumerableViewSchema.cs
- RuntimeHelpers.cs
- PeerPresenceInfo.cs
- BuildProviderUtils.cs
- XhtmlBasicCommandAdapter.cs
- ThreadAttributes.cs
- DataGridViewCellValidatingEventArgs.cs
- LexicalChunk.cs
- ISessionStateStore.cs
- RenamedEventArgs.cs
- cache.cs
- StringConcat.cs
- FlowDocumentFormatter.cs
- XmlAtomErrorReader.cs
- XmlDictionaryString.cs
- AdornedElementPlaceholder.cs