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,包含應用程式設定的名稱。

settingClass
String

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

settingKey
String

String,包含應用程式設定索引鍵。

newValue
Object

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

cancel
Boolean

true 表示要取消事件,否則為 false

備註

建構函式 SettingChangingEventArgs 只會將參數的值指派給 類別中的 SettingChangingEventArgs 對應屬性。

適用於

另請參閱