SettingChangingEventArgs Class

 

Provides data for the SettingChanging event.

Namespace:   System.Configuration
Assembly:  System (in System.dll)

System.Object
  System.EventArgs
    System.ComponentModel.CancelEventArgs
      System.Configuration.SettingChangingEventArgs

public class SettingChangingEventArgs : CancelEventArgs

NameDescription
System_CAPS_pubmethodSettingChangingEventArgs(String, String, String, Object, Boolean)

Initializes an instance of the SettingChangingEventArgs class.

NameDescription
System_CAPS_pubpropertyCancel

Gets or sets a value indicating whether the event should be canceled.(Inherited from CancelEventArgs.)

System_CAPS_pubpropertyNewValue

Gets the new value being assigned to the application settings property.

System_CAPS_pubpropertySettingClass

Gets the application settings property category.

System_CAPS_pubpropertySettingKey

Gets the application settings key associated with the property.

System_CAPS_pubpropertySettingName

Gets the name of the application setting associated with the application settings property.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

The SettingChangingEventArgs class provides data for the SettingChanging event, which signals that the value of an application settings property is about to change. The most common source for this event is the get accessor of the Item method in the ApplicationSettingsBase class.

Because SettingChangingEventArgs is derived from CancelEventArgs, the handler has the option of canceling the write operation.

.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: