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
- AnimationLayer.cs
- GlyphShapingProperties.cs
- RequiredFieldValidator.cs
- XmlWrappingReader.cs
- OracleEncoding.cs
- ControlAdapter.cs
- EventLog.cs
- ProcessStartInfo.cs
- ValidatingReaderNodeData.cs
- Button.cs
- Property.cs
- BoolExpr.cs
- WorkBatch.cs
- wmiprovider.cs
- ChildDocumentBlock.cs
- SafeFileMappingHandle.cs
- controlskin.cs
- ProtocolElement.cs
- StyleSelector.cs
- ResourceDisplayNameAttribute.cs
- SQLDateTime.cs
- WebConfigurationFileMap.cs
- PeerInvitationResponse.cs
- DiscoveryDocumentReference.cs
- NameService.cs
- BooleanConverter.cs
- WebRequestModuleElement.cs
- BindUriHelper.cs
- RoutedPropertyChangedEventArgs.cs
- ILGen.cs
- AudienceUriMode.cs
- ProbeMatchesMessage11.cs
- OrderedDictionaryStateHelper.cs
- ActiveXContainer.cs
- AdapterUtil.cs
- QueryContinueDragEventArgs.cs
- AnnouncementEndpointElement.cs
- TableLayoutSettingsTypeConverter.cs
- DesignTimeParseData.cs
- VolatileEnlistmentMultiplexing.cs
- DataViewListener.cs
- DataStorage.cs
- DeclaredTypeElementCollection.cs
- WorkflowMessageEventHandler.cs
- AssociationTypeEmitter.cs
- GifBitmapDecoder.cs
- DateTimeFormatInfoScanner.cs
- XmlAttributeCollection.cs
- RoleManagerModule.cs
- AsyncOperationManager.cs
- CompositeDataBoundControl.cs
- InsufficientMemoryException.cs
- GraphicsPathIterator.cs
- TransactionFlowProperty.cs
- CodePageUtils.cs
- documentsequencetextcontainer.cs
- CustomCategoryAttribute.cs
- InternalBase.cs
- RegexCode.cs
- BasicHttpSecurityMode.cs
- Container.cs
- ProxyAttribute.cs
- RoutingExtensionElement.cs
- DispatcherOperation.cs
- BaseTemplateParser.cs
- NodeInfo.cs
- CommandBinding.cs
- DataRowComparer.cs
- BufferAllocator.cs
- TrustSection.cs
- ServiceSecurityAuditBehavior.cs
- CodeNamespaceCollection.cs
- ACE.cs
- BamlRecordHelper.cs
- RelationshipManager.cs
- LicenseProviderAttribute.cs
- EDesignUtil.cs
- NextPreviousPagerField.cs
- Menu.cs
- DynamicUpdateCommand.cs
- TemplateInstanceAttribute.cs
- CapabilitiesSection.cs
- DocumentApplicationDocumentViewer.cs
- HelpInfo.cs
- DeleteMemberBinder.cs
- WebBaseEventKeyComparer.cs
- SqlNotificationEventArgs.cs
- CharEntityEncoderFallback.cs
- DBSchemaTable.cs
- FakeModelPropertyImpl.cs
- TcpConnectionPoolSettings.cs
- SQLStringStorage.cs
- Trace.cs
- XmlAttributeCollection.cs
- InstanceDataCollectionCollection.cs
- HeaderCollection.cs
- figurelengthconverter.cs
- CodeGotoStatement.cs
- DesignerToolboxInfo.cs
- ValueChangedEventManager.cs