Upraviť

Zdieľať cez


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

Definition

Initializes an instance of the SettingChangingEventArgs class.

public:
 SettingChangingEventArgs(System::String ^ settingName, System::String ^ settingClass, System::String ^ settingKey, System::Object ^ newValue, bool cancel);
public SettingChangingEventArgs (string settingName, string settingClass, string settingKey, object newValue, bool cancel);
new System.Configuration.SettingChangingEventArgs : string * string * string * obj * bool -> System.Configuration.SettingChangingEventArgs
Public Sub New (settingName As String, settingClass As String, settingKey As String, newValue As Object, cancel As Boolean)

Parameters

settingName
String

A String containing the name of the application setting.

settingClass
String

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

settingKey
String

A String containing the application settings key.

newValue
Object

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

cancel
Boolean

true to cancel the event; otherwise, false.

Remarks

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

Applies to

See also