Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DataTableNewRowEvent.cs
- _IPv4Address.cs
- MatrixValueSerializer.cs
- ValueChangedEventManager.cs
- DependencySource.cs
- DecimalStorage.cs
- DeferredReference.cs
- DataGridViewComboBoxCell.cs
- ImageInfo.cs
- PerformanceCounterLib.cs
- ThreadStateException.cs
- PerformanceCounterManager.cs
- CompositeScriptReference.cs
- TreeView.cs
- LoginCancelEventArgs.cs
- QueuedDeliveryRequirementsMode.cs
- InstanceHandleConflictException.cs
- CategoriesDocumentFormatter.cs
- PerspectiveCamera.cs
- SQLStringStorage.cs
- _CommandStream.cs
- NamedPipeAppDomainProtocolHandler.cs
- WebEventCodes.cs
- DeviceSpecificDialogCachedState.cs
- Mappings.cs
- Decoder.cs
- InteropAutomationProvider.cs
- DependencyPropertyKind.cs
- DependencyPropertyValueSerializer.cs
- StringPropertyBuilder.cs
- DbConnectionStringCommon.cs
- PageHandlerFactory.cs
- TextBreakpoint.cs
- ExpressionList.cs
- CopyNamespacesAction.cs
- CheckBoxBaseAdapter.cs
- ProfileService.cs
- SmiEventSink_Default.cs
- DefaultPropertyAttribute.cs
- WebPartHelpVerb.cs
- FilterableAttribute.cs
- ReadOnlyObservableCollection.cs
- SqlServices.cs
- UIPropertyMetadata.cs
- SerializationStore.cs
- ImageAutomationPeer.cs
- SslStream.cs
- NamedPipeTransportBindingElement.cs
- ComplusEndpointConfigContainer.cs
- StylusButton.cs
- SafeProcessHandle.cs
- ColumnWidthChangingEvent.cs
- NetworkInformationPermission.cs
- TraceSource.cs
- CLSCompliantAttribute.cs
- QuaternionConverter.cs
- OledbConnectionStringbuilder.cs
- BinaryWriter.cs
- GeneralTransformGroup.cs
- MetadataItemEmitter.cs
- EntitySqlQueryBuilder.cs
- TreeViewDataItemAutomationPeer.cs
- PageWrapper.cs
- ContentDisposition.cs
- StructuralObject.cs
- EventMappingSettings.cs
- RootBrowserWindowProxy.cs
- StrongNamePublicKeyBlob.cs
- SingleAnimation.cs
- SerializationObjectManager.cs
- WindowsGrip.cs
- DbDataReader.cs
- _FtpControlStream.cs
- DeclarativeCatalogPart.cs
- XPathSelectionIterator.cs
- ObjectAnimationBase.cs
- EventMappingSettingsCollection.cs
- EdmItemError.cs
- RestHandler.cs
- PackageRelationship.cs
- JsonSerializer.cs
- RuleProcessor.cs
- ColumnWidthChangedEvent.cs
- COAUTHIDENTITY.cs
- StorageAssociationTypeMapping.cs
- DesignSurface.cs
- ScrollChrome.cs
- QfeChecker.cs
- CodeCompiler.cs
- SqlBulkCopyColumnMappingCollection.cs
- PackageStore.cs
- OracleParameterBinding.cs
- ClientUtils.cs
- _UriSyntax.cs
- ThreadAbortException.cs
- ClientRuntimeConfig.cs
- MailHeaderInfo.cs
- coordinator.cs
- AdornedElementPlaceholder.cs
- DiffuseMaterial.cs