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
- DefaultValueConverter.cs
- Model3DGroup.cs
- SqlProviderServices.cs
- ZipFileInfo.cs
- LinearQuaternionKeyFrame.cs
- ConcatQueryOperator.cs
- TempFiles.cs
- CurrencyManager.cs
- SystemThemeKey.cs
- ReferencedCollectionType.cs
- PictureBox.cs
- ViewgenGatekeeper.cs
- LiteralControl.cs
- WinEventWrap.cs
- CodeIdentifier.cs
- RootProfilePropertySettingsCollection.cs
- Buffer.cs
- DockingAttribute.cs
- mansign.cs
- SemaphoreFullException.cs
- NativeMethods.cs
- TdsParserSafeHandles.cs
- TableColumn.cs
- MetafileHeaderWmf.cs
- StyleConverter.cs
- SessionIDManager.cs
- GeneralTransformGroup.cs
- WinFormsComponentEditor.cs
- HtmlTableCellCollection.cs
- remotingproxy.cs
- ToolboxItem.cs
- SchemaNotation.cs
- ObjectStateEntry.cs
- formatter.cs
- ApplicationFileParser.cs
- figurelengthconverter.cs
- Typeface.cs
- TemplatePagerField.cs
- WebPartZoneCollection.cs
- BitmapEffectRenderDataResource.cs
- Compiler.cs
- _SafeNetHandles.cs
- IndentedTextWriter.cs
- PathTooLongException.cs
- QilFactory.cs
- DataServiceQueryProvider.cs
- mongolianshape.cs
- InstanceLockLostException.cs
- ProcessHostFactoryHelper.cs
- Rfc2898DeriveBytes.cs
- DependentList.cs
- TextFragmentEngine.cs
- DataGridTextBox.cs
- HyperlinkAutomationPeer.cs
- StorageEntityContainerMapping.cs
- ConnectionStringsSection.cs
- IPipelineRuntime.cs
- ServicePointManager.cs
- CompensationHandlingFilter.cs
- IconConverter.cs
- TextEncodedRawTextWriter.cs
- RuntimeIdentifierPropertyAttribute.cs
- BaseInfoTable.cs
- HttpHeaderCollection.cs
- COM2PropertyDescriptor.cs
- VisualStateManager.cs
- SqlServices.cs
- DefaultCompensation.cs
- ListSourceHelper.cs
- PointHitTestParameters.cs
- ConfigurationSectionGroup.cs
- StrokeCollectionDefaultValueFactory.cs
- ItemChangedEventArgs.cs
- InheritablePropertyChangeInfo.cs
- AssemblyBuilder.cs
- MoveSizeWinEventHandler.cs
- ToolStripPanel.cs
- SimplePropertyEntry.cs
- SettingsSection.cs
- StrokeNodeOperations.cs
- XmlTextEncoder.cs
- XmlSchemaSubstitutionGroup.cs
- TextEffect.cs
- UInt16.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- DefaultValueTypeConverter.cs
- XmlCharCheckingWriter.cs
- XmlILOptimizerVisitor.cs
- HtmlInputImage.cs
- BinaryReader.cs
- QueryActivatableWorkflowsCommand.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- SpotLight.cs
- X500Name.cs
- TreeNode.cs
- ListViewTableRow.cs
- DocComment.cs
- _Semaphore.cs
- Double.cs
- SqlConnection.cs