DataChangedEventManager.AddHandler Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds the specified event handler, which is called when specified source raises the CurrentChanging event.
public:
static void AddHandler(System::Windows::Data::DataSourceProvider ^ source, EventHandler<EventArgs ^> ^ handler);
public static void AddHandler (System.Windows.Data.DataSourceProvider source, EventHandler<EventArgs> handler);
static member AddHandler : System.Windows.Data.DataSourceProvider * EventHandler<EventArgs> -> unit
Public Shared Sub AddHandler (source As DataSourceProvider, handler As EventHandler(Of EventArgs))
Parameters
- source
- DataSourceProvider
The source object that the raises the DataChanged event.
- handler
- EventHandler<EventArgs>
The delegate that handles the DataChanged event.
Exceptions
handler
is null
.
Remarks
Use this method to specify the event handler you want to use to subscribe to the DataChanged event. When you use this method, your listener object does not need to implement the IWeakEventListener interface.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για