EntityDataSource.Updated Event
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.
Occurs after changes to an object have been persisted to the data source.
public:
event EventHandler<System::Web::UI::WebControls::EntityDataSourceChangedEventArgs ^> ^ Updated;
public event EventHandler<System.Web.UI.WebControls.EntityDataSourceChangedEventArgs> Updated;
member this.Updated : EventHandler<System.Web.UI.WebControls.EntityDataSourceChangedEventArgs>
Public Custom Event Updated As EventHandler(Of EntityDataSourceChangedEventArgs)
Event Type
Remarks
The Updated event is raised when changes to a modified object are persisted to the data source or if an error has occurred when applying changes. The Entity property of the EntityDataSourceChangedEventArgs object is used to access the modified object.
The properties of this object contain values returned from the data source, including any server-generated values.
If an error occurs when changes are persisted to the data source, the Updated event is raised and the Exception property of the EntityDataSourceChangedEventArgs object is set to the returned Exception. If you handle the exception in the Updated event handler, set the ExceptionHandled property to true
. This prevents the exception from being raised again. When you specify a value of false
for the ExceptionHandled property, the EntityDataSource re-raises the exception.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για