1 // Licensed to the .NET Foundation under one or more agreements. 2 // The .NET Foundation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 5 using System; 6 7 namespace System.ComponentModel 8 { 9 /// <devdoc> 10 /// <para>Provides data for the <see langword='PropertyChanging'/> 11 /// event.</para> 12 /// </devdoc> 13 public class PropertyChangingEventArgs : EventArgs 14 { 15 private readonly string _propertyName; 16 17 /// <devdoc> 18 /// <para>Initializes a new instance of the <see cref='System.ComponentModel.PropertyChangingEventArgs'/> 19 /// class.</para> 20 /// </devdoc> PropertyChangingEventArgs(string propertyName)21 public PropertyChangingEventArgs(string propertyName) 22 { 23 _propertyName = propertyName; 24 } 25 26 /// <devdoc> 27 /// <para>Indicates the name of the property that is changing.</para> 28 /// </devdoc> 29 public virtual string PropertyName 30 { 31 get 32 { 33 return _propertyName; 34 } 35 } 36 } 37 } 38