Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- PublisherIdentityPermission.cs
- SizeF.cs
- WS2007FederationHttpBindingElement.cs
- PersonalizationProviderHelper.cs
- SplineQuaternionKeyFrame.cs
- GenericUriParser.cs
- MaskDesignerDialog.cs
- HttpApplication.cs
- XPathMultyIterator.cs
- SmtpReplyReaderFactory.cs
- CompositeKey.cs
- ToolStripLocationCancelEventArgs.cs
- DataGridToolTip.cs
- HtmlInputSubmit.cs
- RawStylusSystemGestureInputReport.cs
- EmbeddedMailObject.cs
- WindowsSysHeader.cs
- FlowDocumentScrollViewer.cs
- PropertyPathWorker.cs
- BidOverLoads.cs
- XmlSerializerSection.cs
- ClientFormsAuthenticationMembershipProvider.cs
- XPathDocumentBuilder.cs
- XmlProcessingInstruction.cs
- DataGridHeaderBorder.cs
- CommonObjectSecurity.cs
- BaseAsyncResult.cs
- QilValidationVisitor.cs
- CatalogZoneBase.cs
- SQLByteStorage.cs
- GlobalProxySelection.cs
- MetaType.cs
- TransactionChannelFactory.cs
- RawMouseInputReport.cs
- ObjectFullSpanRewriter.cs
- ExtendedPropertyCollection.cs
- FrameworkElementFactory.cs
- PlatformCulture.cs
- FormViewAutoFormat.cs
- XmlAttributeAttribute.cs
- WebConfigurationHostFileChange.cs
- ContextBase.cs
- BitmapEffectInput.cs
- SchemaAttDef.cs
- SmiEventSink_DeferedProcessing.cs
- DoubleStorage.cs
- InputEventArgs.cs
- PropertyAccessVisitor.cs
- DataGridDesigner.cs
- PlainXmlSerializer.cs
- MeshGeometry3D.cs
- PrincipalPermission.cs
- AggregateException.cs
- EntityObject.cs
- AssemblyAttributesGoHere.cs
- TimeZone.cs
- NestPullup.cs
- SqlDataSourceParameterParser.cs
- ConstructorNeedsTagAttribute.cs
- EntitySqlException.cs
- RotateTransform.cs
- RayHitTestParameters.cs
- DoubleAverageAggregationOperator.cs
- InvokeBase.cs
- CellRelation.cs
- ComboBox.cs
- ImageCollectionEditor.cs
- AbsoluteQuery.cs
- PeerNameRecordCollection.cs
- RewritingSimplifier.cs
- OracleCommand.cs
- WebSysDefaultValueAttribute.cs
- Function.cs
- BindingWorker.cs
- odbcmetadatafactory.cs
- BevelBitmapEffect.cs
- SessionPageStateSection.cs
- CodeEntryPointMethod.cs
- Window.cs
- DataGridViewSelectedColumnCollection.cs
- FrameworkElement.cs
- Token.cs
- FixedSOMPageConstructor.cs
- ICollection.cs
- CryptoApi.cs
- ObjectStateManager.cs
- LayoutManager.cs
- Page.cs
- XmlArrayAttribute.cs
- DateTimeFormatInfoScanner.cs
- MemoryMappedFileSecurity.cs
- SqlConnectionFactory.cs
- TableLayoutSettings.cs
- ColumnMapCopier.cs
- RectangleHotSpot.cs
- TokenizerHelper.cs
- XpsFilter.cs
- PrintController.cs
- ExplicitDiscriminatorMap.cs
- ListBoxAutomationPeer.cs