ClientSettingsProvider::SettingsSaved Event

 

Occurs after the settings provider attempts to save the property values to the Web settings service.

Namespace:   System.Web.ClientServices.Providers
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public:
event EventHandler<SettingsSavedEventArgs^>^ SettingsSaved {
	void add(EventHandler<SettingsSavedEventArgs^>^ value);
	void remove(EventHandler<SettingsSavedEventArgs^>^ value);
}

This event occurs after the settings provider accesses the settings service, even if the settings were not successfully saved. One reason that the provider might fail to save the settings is if the current user has been logged out. You can use the SettingsSavedEventArgs::FailedSettingsList property to determine whether any settings were not successfully saved.

This event does not occur if the settings provider cannot access the settings service, which instead causes the provider to throw a WebException.

The following example code demonstrates how to use this event to display a list of settings that were not successfully saved.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.5
Return to top
Show: