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
- SystemParameters.cs
- ModuleBuilder.cs
- Matrix.cs
- ValueType.cs
- WindowsHyperlink.cs
- FixedBufferAttribute.cs
- ExpressionBuilderCollection.cs
- CachedPathData.cs
- Parameter.cs
- SaveFileDialog.cs
- NullableIntMinMaxAggregationOperator.cs
- DrawingAttributeSerializer.cs
- ApplicationServiceHelper.cs
- GridViewColumn.cs
- MediaElement.cs
- ValidationErrorInfo.cs
- CDSsyncETWBCLProvider.cs
- SelectionRangeConverter.cs
- ClassHandlersStore.cs
- ProcessHost.cs
- GcHandle.cs
- wgx_sdk_version.cs
- SqlReferenceCollection.cs
- BindingGroup.cs
- EventLogger.cs
- GenericsInstances.cs
- EllipseGeometry.cs
- InvalidateEvent.cs
- SrgsDocument.cs
- TypeResolver.cs
- IgnoreSectionHandler.cs
- _UriTypeConverter.cs
- HtmlSelect.cs
- SendingRequestEventArgs.cs
- ToolStripRenderEventArgs.cs
- CollectionEditorDialog.cs
- SplineKeyFrames.cs
- DecoderNLS.cs
- SiteIdentityPermission.cs
- TypeBuilder.cs
- CssTextWriter.cs
- InfoCardSymmetricAlgorithm.cs
- SiteMapNodeCollection.cs
- SectionInput.cs
- Compilation.cs
- UnsafeNativeMethods.cs
- WebPartDisplayMode.cs
- LocatorManager.cs
- LayeredChannelFactory.cs
- ListItemCollection.cs
- LayeredChannelFactory.cs
- OpenFileDialog.cs
- WinEventQueueItem.cs
- RelationshipEndCollection.cs
- PerformanceCounter.cs
- ISAPIWorkerRequest.cs
- XmlSchemaAll.cs
- QueryRelOp.cs
- ReflectionTypeLoadException.cs
- ExceptionTrace.cs
- ReflectionUtil.cs
- DecodeHelper.cs
- FrameDimension.cs
- Boolean.cs
- LogFlushAsyncResult.cs
- StylusButtonEventArgs.cs
- SplitContainer.cs
- IdentityValidationException.cs
- SoapInteropTypes.cs
- XNodeValidator.cs
- NamespaceList.cs
- SerializerProvider.cs
- TextCharacters.cs
- DbQueryCommandTree.cs
- VisualProxy.cs
- EventPrivateKey.cs
- FontStyle.cs
- HandlerFactoryWrapper.cs
- TextEndOfLine.cs
- FixedTextView.cs
- WeakEventTable.cs
- Module.cs
- DesignerToolStripControlHost.cs
- ConfigurationLocation.cs
- WebPartsPersonalizationAuthorization.cs
- ReadOnlyNameValueCollection.cs
- BaseCollection.cs
- SharedPerformanceCounter.cs
- cookiecollection.cs
- ProfileManager.cs
- XmlWriter.cs
- RefType.cs
- RegistrySecurity.cs
- TransactionValidationBehavior.cs
- SeekStoryboard.cs
- DateBoldEvent.cs
- CompositeFontParser.cs
- ContextStack.cs
- RegionData.cs
- ArcSegment.cs