SettingChangingEventHandler 委托
定义
表示用来处理 SettingChanging 事件的方法。Represents the method that will handle the SettingChanging event.
public delegate void SettingChangingEventHandler(System::Object ^ sender, SettingChangingEventArgs ^ e);
public delegate void SettingChangingEventHandler(object sender, SettingChangingEventArgs e);
type SettingChangingEventHandler = delegate of obj * SettingChangingEventArgs -> unit
Public Delegate Sub SettingChangingEventHandler(sender As Object, e As SettingChangingEventArgs)
参数
- sender
- Object
事件的源,通常为从 ApplicationSettingsBase 类派生的应用程序设置包装类。The source of the event, typically an application settings wrapper class derived from the ApplicationSettingsBase class.
包含事件数据的 SettingChangingEventArgs。A SettingChangingEventArgs containing the data for the event.
注解
SettingChanging事件发生在应用程序设置属性的值更改之前,通常通过调用 Item[] 方法进行。The SettingChanging event occurs before the value of an application settings property is changed, typically through a call to the Item[] method. SettingChanging可以通过 SettingChangingEventArgs 事件数据类取消。SettingChanging can be canceled through the SettingChangingEventArgs event data class.
扩展方法
| GetMethodInfo(Delegate) |
获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate. |