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
- ImageField.cs
- StubHelpers.cs
- UpdateTranslator.cs
- __Filters.cs
- TextEvent.cs
- CqlLexerHelpers.cs
- SimpleMailWebEventProvider.cs
- COM2ColorConverter.cs
- TextChange.cs
- DataGridViewEditingControlShowingEventArgs.cs
- LocationFactory.cs
- XmlIlGenerator.cs
- TrustManagerPromptUI.cs
- GroupDescription.cs
- GridEntryCollection.cs
- XmlSchemaAttribute.cs
- DotExpr.cs
- ObjectParameterCollection.cs
- CuspData.cs
- NotifyIcon.cs
- _ScatterGatherBuffers.cs
- ScriptResourceDefinition.cs
- JournalNavigationScope.cs
- SqlCacheDependencySection.cs
- DetailsViewInsertedEventArgs.cs
- PerformanceCounterManager.cs
- FactoryGenerator.cs
- ContentDisposition.cs
- FontSizeConverter.cs
- ProxyHwnd.cs
- IndentTextWriter.cs
- CustomTypeDescriptor.cs
- PointAnimationBase.cs
- LocatorManager.cs
- DoubleStorage.cs
- ApplicationContext.cs
- x509store.cs
- DataGridLinkButton.cs
- ThreadStateException.cs
- ReferenceEqualityComparer.cs
- FormattedTextSymbols.cs
- ReverseInheritProperty.cs
- DataServiceExpressionVisitor.cs
- unsafenativemethodsother.cs
- HTMLTagNameToTypeMapper.cs
- SkewTransform.cs
- PartManifestEntry.cs
- FilterQueryOptionExpression.cs
- objectresult_tresulttype.cs
- FixedNode.cs
- StrongNamePublicKeyBlob.cs
- TextBox.cs
- WindowsTab.cs
- BasicCommandTreeVisitor.cs
- shaperfactory.cs
- XamlVector3DCollectionSerializer.cs
- ControlLocalizer.cs
- BuilderInfo.cs
- DesignerTransaction.cs
- DesignerToolStripControlHost.cs
- DomainConstraint.cs
- SettingsProperty.cs
- VectorCollection.cs
- RewritingProcessor.cs
- DnsPermission.cs
- TimeSpanValidator.cs
- Regex.cs
- ToolStripContentPanelRenderEventArgs.cs
- XmlTextReaderImplHelpers.cs
- SlotInfo.cs
- DuplexChannel.cs
- AsyncResult.cs
- CodeMemberProperty.cs
- InkCollectionBehavior.cs
- PreviewPageInfo.cs
- ZoneMembershipCondition.cs
- Solver.cs
- RectangleGeometry.cs
- DateTimeUtil.cs
- SourceLocationProvider.cs
- KeyValueConfigurationCollection.cs
- GetPageCompletedEventArgs.cs
- StateMachineSubscription.cs
- HashStream.cs
- CodeBlockBuilder.cs
- ColumnMapTranslator.cs
- RepeaterCommandEventArgs.cs
- DataColumnMappingCollection.cs
- GeneralTransform3D.cs
- HwndMouseInputProvider.cs
- TextProperties.cs
- ClientTargetCollection.cs
- DeobfuscatingStream.cs
- MetadataCache.cs
- ProfileSection.cs
- Aggregates.cs
- DefaultValidator.cs
- XmlDocument.cs
- SoapAttributeAttribute.cs
- StylusOverProperty.cs