語言

SettingChangingEventArgs(String, String, String, Object, Boolean) 建構函式

定義

初始化該 SettingChangingEventArgs 類別的實例。

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)

參數

settingName
String

String A 包含應用程式設定名稱。

settingClass
String

String A 包含該設定的類別描述。 通常這個參數會設定為應用程式設定的群組名稱。

settingKey
String

String A 裡面有應用程式設定鍵。

newValue
Object

一個 Object 包含要指派給應用程式設定屬性的新值。

cancel
Boolean

true取消該活動;否則,。 false

備註

SettingChangingEventArgs建構子只是將參數的值指派到類別中SettingChangingEventArgs對應的屬性。

適用於

另請參閱