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
- PointAnimationClockResource.cs
- Expr.cs
- IItemContainerGenerator.cs
- EntitySqlQueryCacheEntry.cs
- DbgUtil.cs
- JapaneseLunisolarCalendar.cs
- DataListComponentEditor.cs
- SmtpNetworkElement.cs
- TraceHandlerErrorFormatter.cs
- DbSetClause.cs
- NamespaceMapping.cs
- WebSysDefaultValueAttribute.cs
- NamedPipeChannelFactory.cs
- ResourceAttributes.cs
- XmlSchemaParticle.cs
- Hex.cs
- TreeViewCancelEvent.cs
- Base64Decoder.cs
- DBCommandBuilder.cs
- ScaleTransform.cs
- FontUnit.cs
- PermissionListSet.cs
- BoolExpressionVisitors.cs
- SchemaImporterExtensionElement.cs
- ReadWriteSpinLock.cs
- StateMachine.cs
- RadioButtonAutomationPeer.cs
- XmlSchemaComplexType.cs
- CompressStream.cs
- HtmlGenericControl.cs
- VisualStyleInformation.cs
- CompositeFontParser.cs
- TypefaceMetricsCache.cs
- MemberDescriptor.cs
- SrgsDocument.cs
- TimelineCollection.cs
- SAPIEngineTypes.cs
- IDReferencePropertyAttribute.cs
- mansign.cs
- ArrayWithOffset.cs
- ButtonBaseAutomationPeer.cs
- MouseButton.cs
- RoleServiceManager.cs
- Base64Stream.cs
- DataBindingExpressionBuilder.cs
- XslTransform.cs
- PtsPage.cs
- OutputWindow.cs
- AsyncPostBackTrigger.cs
- TimeIntervalCollection.cs
- LocalizeDesigner.cs
- MenuCommand.cs
- ReferenceTypeElement.cs
- IndexOutOfRangeException.cs
- HttpServerVarsCollection.cs
- HtmlPanelAdapter.cs
- ConvertEvent.cs
- MasterPage.cs
- MetadataHelper.cs
- TextEditor.cs
- XamlGridLengthSerializer.cs
- diagnosticsswitches.cs
- Menu.cs
- OdbcDataAdapter.cs
- XXXOnTypeBuilderInstantiation.cs
- PageThemeParser.cs
- GeneralTransform3D.cs
- UICuesEvent.cs
- MenuItem.cs
- ObjectDataSourceEventArgs.cs
- FixedSOMPageElement.cs
- ObjectFullSpanRewriter.cs
- BuildProviderAppliesToAttribute.cs
- Stacktrace.cs
- UriSectionData.cs
- TextDpi.cs
- XPathException.cs
- IntranetCredentialPolicy.cs
- CharAnimationBase.cs
- MimeMapping.cs
- webproxy.cs
- TypeListConverter.cs
- Hashtable.cs
- GeneralTransform3DGroup.cs
- UIElementParaClient.cs
- IsolatedStorage.cs
- WindowsTitleBar.cs
- PointAnimationBase.cs
- SqlMultiplexer.cs
- WebPartDescriptionCollection.cs
- MenuCommands.cs
- ToolStripItemBehavior.cs
- PointCollection.cs
- DesigntimeLicenseContext.cs
- BindingOperations.cs
- CancelRequestedRecord.cs
- DataSourceProvider.cs
- SchemaAttDef.cs
- ConditionedDesigner.cs
- DockPatternIdentifiers.cs