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
- SharedPerformanceCounter.cs
- WebEncodingValidatorAttribute.cs
- GenericTextProperties.cs
- DrawingGroup.cs
- GridErrorDlg.cs
- SqlNodeAnnotations.cs
- DataDocumentXPathNavigator.cs
- HandlerFactoryCache.cs
- Selection.cs
- Int64KeyFrameCollection.cs
- SurrogateEncoder.cs
- AssociationSetEnd.cs
- ProfileManager.cs
- PointAnimationUsingKeyFrames.cs
- EntityDataSourceContextCreatingEventArgs.cs
- IIS7UserPrincipal.cs
- ByteStack.cs
- TablePattern.cs
- LoginCancelEventArgs.cs
- SafeRightsManagementEnvironmentHandle.cs
- SqlConnectionString.cs
- PersistChildrenAttribute.cs
- WpfMemberInvoker.cs
- MeshGeometry3D.cs
- DataGridViewColumnHeaderCell.cs
- ErrorFormatterPage.cs
- XmlSerializer.cs
- TriggerActionCollection.cs
- DataBinder.cs
- DataRelationPropertyDescriptor.cs
- DataTrigger.cs
- XmlArrayItemAttributes.cs
- DrawListViewSubItemEventArgs.cs
- EntityDesignerUtils.cs
- ListChangedEventArgs.cs
- WebHttpDispatchOperationSelectorData.cs
- HttpProfileBase.cs
- MetadataArtifactLoaderCompositeResource.cs
- DataRecord.cs
- Typography.cs
- EditorOptionAttribute.cs
- ActivityInstanceMap.cs
- RedistVersionInfo.cs
- HtmlTableCell.cs
- XmlBinaryReaderSession.cs
- ListViewContainer.cs
- ObjectItemAttributeAssemblyLoader.cs
- DataPagerFieldCollection.cs
- ConditionedDesigner.cs
- DbConnectionStringCommon.cs
- ColumnCollectionEditor.cs
- FileSecurity.cs
- SqlDataAdapter.cs
- AudioFormatConverter.cs
- RpcResponse.cs
- DispatcherObject.cs
- WebDescriptionAttribute.cs
- RegexWorker.cs
- DataMemberConverter.cs
- ActivationServices.cs
- DataGridViewEditingControlShowingEventArgs.cs
- AnnouncementEndpoint.cs
- loginstatus.cs
- PropertyPath.cs
- QilVisitor.cs
- FilteredAttributeCollection.cs
- DataGridViewColumn.cs
- ButtonColumn.cs
- AmbientValueAttribute.cs
- FontStretch.cs
- BaseServiceProvider.cs
- TextTreeTextElementNode.cs
- UnsafeNativeMethods.cs
- FtpCachePolicyElement.cs
- DiagnosticsConfigurationHandler.cs
- WindowsListViewSubItem.cs
- CqlLexerHelpers.cs
- RoutedPropertyChangedEventArgs.cs
- ButtonFieldBase.cs
- CookieParameter.cs
- WebPartConnectionsConfigureVerb.cs
- HMACSHA1.cs
- HtmlInputPassword.cs
- EditingScope.cs
- SmtpFailedRecipientsException.cs
- XmlQueryStaticData.cs
- PublishLicense.cs
- TraversalRequest.cs
- NegationPusher.cs
- StreamGeometry.cs
- ConfigXmlReader.cs
- Utilities.cs
- TextProperties.cs
- CapabilitiesUse.cs
- DbDataReader.cs
- StringArrayConverter.cs
- SendMailErrorEventArgs.cs
- RemoveStoryboard.cs
- TextMetrics.cs
- SqlConnection.cs