SettingChangingEventArgs Klasa
Definicja
Udostępnia dane dla zdarzenia SettingChanging.Provides data for the SettingChanging event.
public ref class SettingChangingEventArgs : System::ComponentModel::CancelEventArgs
public class SettingChangingEventArgs : System.ComponentModel.CancelEventArgs
type SettingChangingEventArgs = class
inherit CancelEventArgs
Public Class SettingChangingEventArgs
Inherits CancelEventArgs
- Dziedziczenie
Uwagi
SettingChangingEventArgsKlasa zawiera dane dla SettingChanging zdarzenia, które sygnalizują, że wartość właściwości ustawienia aplikacji ma zostać zmieniona.The SettingChangingEventArgs class provides data for the SettingChanging event, which signals that the value of an application settings property is about to change. Najbardziej typowym źródłem tego zdarzenia jest get
Item[] Metoda w ApplicationSettingsBase klasie.The most common source for this event is the get
accessor of the Item[] method in the ApplicationSettingsBase class.
Ponieważ pochodzi SettingChangingEventArgs od CancelEventArgs , program obsługi ma opcję anulowania operacji zapisu.Because SettingChangingEventArgs is derived from CancelEventArgs, the handler has the option of canceling the write operation.
Konstruktory
SettingChangingEventArgs(String, String, String, Object, Boolean) |
Inicjuje wystąpienie klasy SettingChangingEventArgs.Initializes an instance of the SettingChangingEventArgs class. |
Właściwości
Cancel |
Pobiera lub ustawia wartość wskazującą, czy zdarzenie powinno być anulowane.Gets or sets a value indicating whether the event should be canceled. (Odziedziczone po CancelEventArgs) |
NewValue |
Pobiera nową wartość przypisaną do właściwości ustawienia aplikacji.Gets the new value being assigned to the application settings property. |
SettingClass |
Pobiera kategorię właściwości ustawienia aplikacji.Gets the application settings property category. |
SettingKey |
Pobiera klucz ustawień aplikacji skojarzony z właściwością.Gets the application settings key associated with the property. |
SettingName |
Pobiera nazwę ustawienia aplikacji skojarzonego z właściwością ustawienia aplikacji.Gets the name of the application setting associated with the application settings property. |
Metody
Equals(Object) |
Określa, czy dany obiekt jest taki sam, jak bieżący obiekt.Determines whether the specified object is equal to the current object. (Odziedziczone po Object) |
GetHashCode() |
Służy jako domyślna funkcja skrótu.Serves as the default hash function. (Odziedziczone po Object) |
GetType() |
Pobiera Type bieżące wystąpienie.Gets the Type of the current instance. (Odziedziczone po Object) |
MemberwiseClone() |
Tworzy skróconą kopię bieżącego elementu Object .Creates a shallow copy of the current Object. (Odziedziczone po Object) |
ToString() |
Zwraca ciąg reprezentujący bieżący obiekt.Returns a string that represents the current object. (Odziedziczone po Object) |