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
- SortDescriptionCollection.cs
- DataControlCommands.cs
- shaper.cs
- BindingExpression.cs
- Pen.cs
- DataReceivedEventArgs.cs
- TypeElementCollection.cs
- PageBuildProvider.cs
- MediaElementAutomationPeer.cs
- ChtmlPhoneCallAdapter.cs
- MenuItem.cs
- LabelDesigner.cs
- Type.cs
- CodeBlockBuilder.cs
- XmlQueryType.cs
- XmlSchemaFacet.cs
- ListArgumentProvider.cs
- DeclarativeCatalogPart.cs
- BinaryReader.cs
- AppModelKnownContentFactory.cs
- WindowsGraphics2.cs
- MetadataExchangeClient.cs
- XmlWhitespace.cs
- CompiledRegexRunnerFactory.cs
- CodeMethodReturnStatement.cs
- ControlEvent.cs
- OrderablePartitioner.cs
- SetUserPreferenceRequest.cs
- NavigationCommands.cs
- InsufficientMemoryException.cs
- BitmapMetadataBlob.cs
- StoreAnnotationsMap.cs
- LayoutTable.cs
- ExtensionWindowHeader.cs
- FormsAuthenticationTicket.cs
- ParseHttpDate.cs
- Math.cs
- Configuration.cs
- BordersPage.cs
- OneWayBindingElement.cs
- MimeWriter.cs
- ScriptControl.cs
- TextBoxBase.cs
- TypedElement.cs
- FrameworkContentElement.cs
- SafeThreadHandle.cs
- OracleEncoding.cs
- DrawingAttributesDefaultValueFactory.cs
- SecurityTokenAuthenticator.cs
- ClientSettingsStore.cs
- SHA1Managed.cs
- DbMetaDataFactory.cs
- MsmqInputChannelListenerBase.cs
- MsmqAppDomainProtocolHandler.cs
- TransactionBridge.cs
- TagElement.cs
- AspCompat.cs
- ButtonField.cs
- X509Certificate.cs
- ValidationErrorCollection.cs
- ObjectHelper.cs
- SyndicationElementExtensionCollection.cs
- ClientRolePrincipal.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- ClassicBorderDecorator.cs
- CloudCollection.cs
- Expander.cs
- BooleanAnimationBase.cs
- ArraySortHelper.cs
- MachineKeyConverter.cs
- ManifestResourceInfo.cs
- LocalClientSecuritySettingsElement.cs
- OutputCacheModule.cs
- HttpDebugHandler.cs
- ReflectTypeDescriptionProvider.cs
- JavascriptCallbackResponseProperty.cs
- InvokeSchedule.cs
- XmlQueryType.cs
- QueryAccessibilityHelpEvent.cs
- ListBoxItemAutomationPeer.cs
- _AutoWebProxyScriptHelper.cs
- userdatakeys.cs
- AxWrapperGen.cs
- HtmlImage.cs
- DataControlFieldCell.cs
- SizeConverter.cs
- DataObjectEventArgs.cs
- CompleteWizardStep.cs
- SectionVisual.cs
- BindingCollection.cs
- StateMachineHistory.cs
- InputScopeAttribute.cs
- AssertValidation.cs
- BindUriHelper.cs
- XmlSchemaValidator.cs
- RequestCachePolicy.cs
- StateWorkerRequest.cs
- InlineObject.cs
- DataKey.cs
- FormCollection.cs