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
- WorkflowEnvironment.cs
- COM2EnumConverter.cs
- UniqueIdentifierService.cs
- QilTypeChecker.cs
- RuleCache.cs
- RefreshEventArgs.cs
- _NtlmClient.cs
- StorageComplexPropertyMapping.cs
- RegistrySecurity.cs
- CompositionAdorner.cs
- TimerTable.cs
- SmtpNetworkElement.cs
- DataColumn.cs
- RotateTransform3D.cs
- RawStylusInputCustomDataList.cs
- ExpressionBuilderContext.cs
- Invariant.cs
- DataColumnMapping.cs
- ArrayList.cs
- TypeNameConverter.cs
- XmlSchemaSimpleTypeUnion.cs
- EntitySqlQueryBuilder.cs
- UntypedNullExpression.cs
- UpDownBase.cs
- ConfigurationLockCollection.cs
- DbMetaDataColumnNames.cs
- CacheForPrimitiveTypes.cs
- RowUpdatedEventArgs.cs
- EditorPartChrome.cs
- PngBitmapDecoder.cs
- Setter.cs
- SharedPersonalizationStateInfo.cs
- ConfigurationException.cs
- Int32Rect.cs
- Trace.cs
- SelectingProviderEventArgs.cs
- ForeignKeyConstraint.cs
- XmlArrayItemAttributes.cs
- ImageKeyConverter.cs
- GraphicsContext.cs
- Rule.cs
- RSACryptoServiceProvider.cs
- ModuleBuilderData.cs
- HtmlElementEventArgs.cs
- DataGridAddNewRow.cs
- DataTableTypeConverter.cs
- XmlSchemaAttributeGroup.cs
- SpeechRecognizer.cs
- UdpDuplexChannel.cs
- ImportException.cs
- PenCursorManager.cs
- ReadOnlyPropertyMetadata.cs
- DynamicPropertyHolder.cs
- ExeConfigurationFileMap.cs
- XmlQueryTypeFactory.cs
- NoneExcludedImageIndexConverter.cs
- ResolveCriteria.cs
- WinInet.cs
- EdmEntityTypeAttribute.cs
- DataChangedEventManager.cs
- XmlIlTypeHelper.cs
- FieldAccessException.cs
- WorkflowRuntimeService.cs
- SponsorHelper.cs
- TypeReference.cs
- SqlCachedBuffer.cs
- DesignerAutoFormat.cs
- ThemeDirectoryCompiler.cs
- MarkupWriter.cs
- PagesChangedEventArgs.cs
- StateInitializationDesigner.cs
- FrameworkObject.cs
- XmlSchemas.cs
- DebugHandleTracker.cs
- CreateUserWizardStep.cs
- ExpressionBuilderCollection.cs
- LinkedList.cs
- _ProxyRegBlob.cs
- InfoCardMetadataExchangeClient.cs
- DataControlPagerLinkButton.cs
- QueryCacheKey.cs
- SchemaInfo.cs
- DataGridColumnEventArgs.cs
- HtmlSelect.cs
- SoapSchemaImporter.cs
- SystemNetHelpers.cs
- DynamicActionMessageFilter.cs
- ButtonRenderer.cs
- Window.cs
- MetadataItem_Static.cs
- CheckBoxPopupAdapter.cs
- DbProviderFactory.cs
- SoapSchemaMember.cs
- PolyBezierSegment.cs
- NonVisualControlAttribute.cs
- UnsafeNativeMethods.cs
- DeflateEmulationStream.cs
- ZipIOExtraFieldZip64Element.cs
- PasswordTextContainer.cs
- SecurityIdentifierConverter.cs