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
- BitSet.cs
- Label.cs
- PackWebRequestFactory.cs
- ScriptingRoleServiceSection.cs
- dataobject.cs
- Vector3DAnimationBase.cs
- GroupQuery.cs
- LogConverter.cs
- ComIntegrationManifestGenerator.cs
- TextSelectionProcessor.cs
- DataObjectCopyingEventArgs.cs
- ActivityExecutorOperation.cs
- TypeContext.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- sqlstateclientmanager.cs
- EntityDataSourceDesignerHelper.cs
- ListDependantCardsRequest.cs
- ImageList.cs
- ListSourceHelper.cs
- SecurityTraceRecordHelper.cs
- TemplateControlParser.cs
- COMException.cs
- UrlEncodedParameterWriter.cs
- MatchAttribute.cs
- FormViewUpdatedEventArgs.cs
- SkinBuilder.cs
- NamespaceCollection.cs
- UInt64.cs
- LinqMaximalSubtreeNominator.cs
- Int16Animation.cs
- ClientUrlResolverWrapper.cs
- FilterableAttribute.cs
- X509CertificateEndpointIdentity.cs
- SystemWebExtensionsSectionGroup.cs
- Error.cs
- ObjectViewListener.cs
- BufferAllocator.cs
- counter.cs
- CodeExpressionCollection.cs
- TargetFrameworkUtil.cs
- DelegatingHeader.cs
- Pointer.cs
- LicFileLicenseProvider.cs
- QilList.cs
- ExpressionVisitor.cs
- CodePrimitiveExpression.cs
- ObfuscationAttribute.cs
- ListViewInsertedEventArgs.cs
- BinaryReader.cs
- WebPartDisplayModeEventArgs.cs
- ToolStripContainerActionList.cs
- TimeIntervalCollection.cs
- iisPickupDirectory.cs
- OdbcTransaction.cs
- Input.cs
- FormatterConverter.cs
- UrlPropertyAttribute.cs
- DesignDataSource.cs
- OrderedDictionary.cs
- WebHttpBindingCollectionElement.cs
- HttpResponse.cs
- TextBreakpoint.cs
- GroupPartitionExpr.cs
- TextTrailingWordEllipsis.cs
- ToolboxControl.cs
- Rotation3DAnimationBase.cs
- DiagnosticSection.cs
- DataServiceException.cs
- Condition.cs
- Page.cs
- ConfigXmlText.cs
- SafeRsaProviderHandle.cs
- Fonts.cs
- ReflectionServiceProvider.cs
- XsdDateTime.cs
- FilteredReadOnlyMetadataCollection.cs
- VideoDrawing.cs
- RemotingServices.cs
- XmlCustomFormatter.cs
- TableAutomationPeer.cs
- CorrelationHandle.cs
- Int64Animation.cs
- EntityTypeEmitter.cs
- SqlGenerator.cs
- List.cs
- HttpProfileGroupBase.cs
- Parser.cs
- EncoderParameters.cs
- TdsRecordBufferSetter.cs
- SafeNativeMethods.cs
- XmlReaderSettings.cs
- HttpDateParse.cs
- DiagnosticsElement.cs
- TemplateNameScope.cs
- TimersDescriptionAttribute.cs
- Typography.cs
- ControlDesigner.cs
- ModelService.cs
- XLinq.cs
- dtdvalidator.cs