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
- DocumentSchemaValidator.cs
- XsdValidatingReader.cs
- ReadWriteObjectLock.cs
- HTMLTextWriter.cs
- BitmapEffectInput.cs
- ContextStack.cs
- ValueTypeFixupInfo.cs
- PrintDialogException.cs
- XPathSelfQuery.cs
- SqlNotificationRequest.cs
- TextLineResult.cs
- listitem.cs
- SqlTransaction.cs
- DispatchWrapper.cs
- HttpListener.cs
- InputScope.cs
- LineBreakRecord.cs
- ObfuscateAssemblyAttribute.cs
- XmlArrayAttribute.cs
- DataGridViewElement.cs
- WizardStepCollectionEditor.cs
- ThreadInterruptedException.cs
- GridViewRowCollection.cs
- SimpleApplicationHost.cs
- DragCompletedEventArgs.cs
- EmptyQuery.cs
- WebServiceMethodData.cs
- TypeResolver.cs
- SByteStorage.cs
- TimeSpanMinutesConverter.cs
- FormViewRow.cs
- XmlSchemaSimpleContentRestriction.cs
- CalendarButtonAutomationPeer.cs
- ParagraphVisual.cs
- FrameworkRichTextComposition.cs
- ReverseComparer.cs
- SignatureResourcePool.cs
- HMACSHA1.cs
- RegexCode.cs
- smtpconnection.cs
- ControlBuilderAttribute.cs
- HexParser.cs
- SecurityPermission.cs
- TextElementEnumerator.cs
- Variable.cs
- SQLMoneyStorage.cs
- ResourceDisplayNameAttribute.cs
- DoubleCollectionValueSerializer.cs
- CompositeScriptReference.cs
- TaskFormBase.cs
- Item.cs
- WebPartUserCapability.cs
- IgnoreFileBuildProvider.cs
- FontResourceCache.cs
- basecomparevalidator.cs
- __ComObject.cs
- ReferenceEqualityComparer.cs
- TextLineResult.cs
- StreamGeometry.cs
- StyleBamlRecordReader.cs
- SoapAttributes.cs
- RadioButton.cs
- ServiceNameCollection.cs
- ActiveXHelper.cs
- TextDecorations.cs
- base64Transforms.cs
- StrokeNodeData.cs
- ListMarkerLine.cs
- SQLBytes.cs
- CodePageUtils.cs
- TaskFormBase.cs
- ImageSource.cs
- XmlElementAttributes.cs
- TraceData.cs
- XmlIncludeAttribute.cs
- NativeCompoundFileAPIs.cs
- WindowsPrincipal.cs
- ZipIOLocalFileDataDescriptor.cs
- DecimalKeyFrameCollection.cs
- _SpnDictionary.cs
- StringKeyFrameCollection.cs
- TextViewBase.cs
- Transform.cs
- Int64AnimationBase.cs
- SymLanguageVendor.cs
- OleDbError.cs
- SqlCommandSet.cs
- BitmapSourceSafeMILHandle.cs
- SerializerDescriptor.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- LayoutInformation.cs
- TextSegment.cs
- KeyInstance.cs
- GridView.cs
- InternalException.cs
- ScriptingWebServicesSectionGroup.cs
- DescendantBaseQuery.cs
- InternalDispatchObject.cs
- BoundColumn.cs
- EdmScalarPropertyAttribute.cs