This documentation is archived and is not being maintained.

SettingChangingEventArgs Constructor

Note: This constructor is new in the .NET Framework version 2.0.

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
)
public SettingChangingEventArgs (
	String settingName, 
	String settingClass, 
	String settingKey, 
	Object newValue, 
	boolean cancel
)
public function SettingChangingEventArgs (
	settingName : String, 
	settingClass : String, 
	settingKey : String, 
	newValue : Object, 
	cancel : boolean
)

Parameters

settingName

A String containing the name of the application setting.

settingClass

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

settingKey

A String containing the application settings key.

newValue

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

cancel

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.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Show: