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
- ConnectivityStatus.cs
- Tuple.cs
- DataGridViewTextBoxEditingControl.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- GridViewUpdateEventArgs.cs
- HostingEnvironment.cs
- GridViewCellAutomationPeer.cs
- QueryStoreStatusRequest.cs
- GraphicsPath.cs
- DbMetaDataColumnNames.cs
- SplitterCancelEvent.cs
- TemplatedWizardStep.cs
- SqlCaseSimplifier.cs
- RightsManagementPermission.cs
- OledbConnectionStringbuilder.cs
- MatrixTransform.cs
- PeerResolverMode.cs
- SatelliteContractVersionAttribute.cs
- StringAttributeCollection.cs
- Empty.cs
- HttpCookieCollection.cs
- ConnectionProviderAttribute.cs
- MutableAssemblyCacheEntry.cs
- RoleBoolean.cs
- FontCacheLogic.cs
- xsdvalidator.cs
- CalendarButton.cs
- EmbossBitmapEffect.cs
- URLString.cs
- CompositeControlDesigner.cs
- EventBookmark.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ReferentialConstraintRoleElement.cs
- XmlSchemaComplexContentExtension.cs
- SHA384.cs
- XmlArrayItemAttributes.cs
- DataPagerFieldCollection.cs
- SystemIPInterfaceStatistics.cs
- OletxResourceManager.cs
- ZipIOFileItemStream.cs
- SchemaImporterExtensionElementCollection.cs
- TextTreeTextBlock.cs
- RequestCachingSection.cs
- BindingSource.cs
- ServiceContractViewControl.Designer.cs
- SoapFormatExtensions.cs
- EngineSite.cs
- ImmutableAssemblyCacheEntry.cs
- SelectionPattern.cs
- DurableOperationContext.cs
- Parameter.cs
- AlphabeticalEnumConverter.cs
- TextEditor.cs
- TrustSection.cs
- ScrollBarAutomationPeer.cs
- TileModeValidation.cs
- DataGridViewControlCollection.cs
- TextTreeTextNode.cs
- LoginStatusDesigner.cs
- ThreadStartException.cs
- TextRangeEditLists.cs
- CodeLinePragma.cs
- SqlCacheDependency.cs
- CommentEmitter.cs
- CellConstantDomain.cs
- SizeValueSerializer.cs
- InputBinding.cs
- safelinkcollection.cs
- PowerModeChangedEventArgs.cs
- Unit.cs
- XmlEventCache.cs
- ResourceContainer.cs
- SafeBitVector32.cs
- KeyEvent.cs
- StringStorage.cs
- QilGeneratorEnv.cs
- HttpAsyncResult.cs
- SrgsGrammarCompiler.cs
- ProcessManager.cs
- FormattedTextSymbols.cs
- CharEnumerator.cs
- metadatamappinghashervisitor.cs
- XmlSchemaResource.cs
- FixedTextPointer.cs
- ObjectDataSourceDesigner.cs
- MaterialGroup.cs
- SeverityFilter.cs
- AuthenticationConfig.cs
- XmlSignatureManifest.cs
- XmlArrayItemAttribute.cs
- MatrixConverter.cs
- ModulesEntry.cs
- ManualResetEvent.cs
- Brush.cs
- DetailsViewModeEventArgs.cs
- BitmapSourceSafeMILHandle.cs
- EncryptedType.cs
- GiveFeedbackEvent.cs
- SystemTcpConnection.cs
- SystemDropShadowChrome.cs