SettingChangingEventArgs Constructor (String, String, String, Object, Boolean)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes an instance of the SettingChangingEventArgs class.

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

public SettingChangingEventArgs(
	string settingName,
	string settingClass,
	string settingKey,
	object newValue,
	bool cancel
)

Parameters

settingName
Type: System.String

A String containing the name of the application setting.

settingClass
Type: System.String

A String containing a category description of the setting. Often this parameter is set to the application settings group name.

settingKey
Type: System.String

A String containing the application settings key.

newValue
Type: System.Object

An Object that contains the new value to be assigned to the application settings property.

cancel
Type: System.Boolean

true to cancel the event; otherwise, false.

The SettingChangingEventArgs constructor just assigns the values of the parameters to the corresponding properties in the SettingChangingEventArgs class.

.NET Framework
Available since 2.0
Return to top
Show: