ModulePropertiesPage.UpdateProperties(Boolean) Method

Definition

When overridden in a derived class, updates property values when the user clicks the Apply button.

protected:
 abstract Microsoft::Web::Management::Server::PropertyBag ^ UpdateProperties([Runtime::InteropServices::Out] bool % updateSuccessful);
protected abstract Microsoft.Web.Management.Server.PropertyBag UpdateProperties (out bool updateSuccessful);
abstract member UpdateProperties :  -> Microsoft.Web.Management.Server.PropertyBag
Protected MustOverride Function UpdateProperties (ByRef updateSuccessful As Boolean) As PropertyBag

Parameters

updateSuccessful
Boolean

true to indicate that the property update was successful; otherwise, false.

Returns

The PropertyBag object that contains the updated values.

Examples

The following example saves the custom settings.

void SavePreferences() {

    try {
        PreferencesStore store = MyPrefStore;

        store.SetValue(CS.myCnfgBool, _myCnfBool, false);
        store.SetValue(CS.zCnt, _myZcnt, 1638);
        store.SetValue(CS.dbCon, _myDB, "SQL 03");

        SavePreferences(store);

        // Remove the store if nothing was put in it
        if (store.IsEmpty)
            MyPrefService.ResetPreferencesStore(MyPrefKey);
    } catch (Exception ex) {
        OnException(ex);
    }

}

Applies to