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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextTreeNode.cs
- ConnectionManagementElementCollection.cs
- NativeMethods.cs
- StatusStrip.cs
- SafeLibraryHandle.cs
- FontSizeConverter.cs
- OleDbParameter.cs
- DBSqlParser.cs
- GlyphsSerializer.cs
- SvcFileManager.cs
- FixedSOMTableCell.cs
- UrlAuthFailedErrorFormatter.cs
- TemplateGroupCollection.cs
- TextSpan.cs
- ContractTypeNameCollection.cs
- HtmlTernaryTree.cs
- AttachInfo.cs
- MailAddress.cs
- BitmapData.cs
- fixedPageContentExtractor.cs
- EventLogEntry.cs
- FileDialog_Vista_Interop.cs
- Section.cs
- pingexception.cs
- ToolStripPanel.cs
- SQLBinary.cs
- SoapMessage.cs
- ThicknessAnimationBase.cs
- StyleModeStack.cs
- ToolStripStatusLabel.cs
- Parallel.cs
- RegexGroup.cs
- ModelChangedEventArgsImpl.cs
- SecurityRuntime.cs
- StyleCollection.cs
- WindowHideOrCloseTracker.cs
- RegularExpressionValidator.cs
- SecureStringHasher.cs
- columnmapkeybuilder.cs
- TriState.cs
- StreamingContext.cs
- Rect3D.cs
- DynamicAttribute.cs
- ProfileService.cs
- Converter.cs
- Drawing.cs
- FixedHyperLink.cs
- ListViewDesigner.cs
- ArgIterator.cs
- ConfigurationElementProperty.cs
- WindowsImpersonationContext.cs
- SerializationHelper.cs
- RemotingConfigParser.cs
- SessionStateModule.cs
- CodePageEncoding.cs
- ScrollBar.cs
- VerificationAttribute.cs
- ExpressionLink.cs
- MenuBindingsEditorForm.cs
- SqlCacheDependencySection.cs
- TemplateControlBuildProvider.cs
- SvcMapFile.cs
- RegistryConfigurationProvider.cs
- CodeGeneratorOptions.cs
- CollectionBuilder.cs
- EdmSchemaAttribute.cs
- SmtpDigestAuthenticationModule.cs
- ProcessModuleCollection.cs
- CommandHelpers.cs
- HwndMouseInputProvider.cs
- RuntimeIdentifierPropertyAttribute.cs
- MinimizableAttributeTypeConverter.cs
- ByteConverter.cs
- HttpCacheVary.cs
- ConnectionManagementSection.cs
- SingleTagSectionHandler.cs
- DataContractSet.cs
- Vector3D.cs
- WinInetCache.cs
- IDQuery.cs
- PresentationTraceSources.cs
- RectAnimationClockResource.cs
- WebResourceUtil.cs
- RequestCachePolicy.cs
- ConnectionProviderAttribute.cs
- DES.cs
- StyleXamlParser.cs
- EntityClassGenerator.cs
- SelectorItemAutomationPeer.cs
- ReadWriteObjectLock.cs
- OutputCacheModule.cs
- FontWeights.cs
- WhitespaceSignificantCollectionAttribute.cs
- RequestDescription.cs
- ResourceManager.cs
- recordstatefactory.cs
- PropagatorResult.cs
- TextWriter.cs
- RNGCryptoServiceProvider.cs
- XmlDownloadManager.cs