ModuleListPage.LoadPreferences(PreferencesStore) 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.
Retrieves stored preferences from a per-user store.
protected:
override void LoadPreferences(Microsoft::Web::Management::Client::PreferencesStore ^ store);
protected override void LoadPreferences (Microsoft.Web.Management.Client.PreferencesStore store);
override this.LoadPreferences : Microsoft.Web.Management.Client.PreferencesStore -> unit
Protected Overrides Sub LoadPreferences (store As PreferencesStore)
Parameters
- store
- PreferencesStore
The ID of the store.
Examples
The following example calls the LoadPreferences method as part of the page initialization.
protected override void Initialize(object navigationData) {
base.Initialize(navigationData);
PreferencesStore store = GetPrefStore();
LoadPreferences(store);
string curSelectedFilter = string.Empty;
if (navigationData != null) {
if (navigationData is PropertyBag) {
PropertyBag tempBag = (PropertyBag)navigationData;
if ((string)tempBag[0] == "navigate") {
curSelectedFilter = (string)tempBag[2];
}
}
}
if (String.IsNullOrEmpty(curSelectedFilter))
curSelectedFilter = DefaultFilter();
_filter = new MyModuleListPageFilter(
"The results have been filtered by" +
curSelectedFilter, true);
_filter.FilterStr = curSelectedFilter;
}
Remarks
This method is called when a page is initialized.