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
- DynamicPropertyHolder.cs
- DESCryptoServiceProvider.cs
- SpellerInterop.cs
- cookiecollection.cs
- ObjectListTitleAttribute.cs
- CompositeFontInfo.cs
- HtmlAnchor.cs
- TextRenderer.cs
- EventSchemaTraceListener.cs
- SmtpFailedRecipientsException.cs
- LineServicesRun.cs
- GetCryptoTransformRequest.cs
- WindowsClientElement.cs
- WebPartTracker.cs
- SqlEnums.cs
- DesignerGenericWebPart.cs
- ConfigErrorGlyph.cs
- ListBox.cs
- SymDocumentType.cs
- PerformanceCounterLib.cs
- SafeRightsManagementSessionHandle.cs
- DesigntimeLicenseContext.cs
- WebMessageEncoderFactory.cs
- RelationHandler.cs
- Converter.cs
- COM2PictureConverter.cs
- SessionEndedEventArgs.cs
- ServiceSecurityContext.cs
- ExtensionSimplifierMarkupObject.cs
- IODescriptionAttribute.cs
- PropertyNames.cs
- RewritingProcessor.cs
- MergeFilterQuery.cs
- CompilerResults.cs
- Keywords.cs
- TextEditorThreadLocalStore.cs
- Message.cs
- UidPropertyAttribute.cs
- SamlAssertionDirectKeyIdentifierClause.cs
- WindowsScrollBar.cs
- KeyEvent.cs
- TextTreeTextNode.cs
- ErrorWrapper.cs
- XmlFormatExtensionAttribute.cs
- DeviceFilterDictionary.cs
- AdornedElementPlaceholder.cs
- DataServiceQueryContinuation.cs
- HebrewCalendar.cs
- FormatException.cs
- SchemaElementLookUpTableEnumerator.cs
- XamlSerializerUtil.cs
- PrefixHandle.cs
- UIHelper.cs
- XmlSchemaCompilationSettings.cs
- UnitControl.cs
- OpenTypeCommon.cs
- FixedTextBuilder.cs
- ConnectionManagementElement.cs
- AuthenticateEventArgs.cs
- XmlWrappingReader.cs
- FormClosingEvent.cs
- DesignerContextDescriptor.cs
- HostedAspNetEnvironment.cs
- WizardPanel.cs
- CompilationUnit.cs
- CodeTypeMember.cs
- TargetException.cs
- AsyncOperation.cs
- ResourceReferenceKeyNotFoundException.cs
- RegexCompiler.cs
- TextElementAutomationPeer.cs
- DataControlPagerLinkButton.cs
- NamedObject.cs
- SqlRemoveConstantOrderBy.cs
- RegistrationServices.cs
- UIElementParaClient.cs
- TimeSpanSecondsConverter.cs
- VectorAnimationBase.cs
- MDIControlStrip.cs
- HWStack.cs
- HttpRequestTraceRecord.cs
- UnsignedPublishLicense.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- CaseInsensitiveOrdinalStringComparer.cs
- PropertyGrid.cs
- DoubleAnimationUsingKeyFrames.cs
- TargetInvocationException.cs
- StructuralType.cs
- Int32AnimationBase.cs
- MaskDescriptor.cs
- TerminatorSinks.cs
- PropertyEmitterBase.cs
- SerTrace.cs
- SamlAction.cs
- RegexStringValidatorAttribute.cs
- DataGridViewCellValidatingEventArgs.cs
- MembershipUser.cs
- VectorCollectionConverter.cs
- ArraySubsetEnumerator.cs
- TcpAppDomainProtocolHandler.cs