ModuleListPage.RefreshFilter 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.
Updates the page by using the Filter property data.
protected:
void RefreshFilter();
protected void RefreshFilter ();
member this.RefreshFilter : unit -> unit
Protected Sub RefreshFilter ()
Examples
The following example creates a new filter and then calls the RefreshFilter method.
internal class DemoModule : Microsoft.Web.Management.Client.Module {
protected override void Initialize(IServiceProvider
serviceProvider, ModuleInfo moduleInfo) {
base.Initialize(serviceProvider, moduleInfo);
IControlPanel cp =
(IControlPanel)GetService(typeof(IControlPanel));
ModulePageInfo modPgInfo = getModulePage();
cp.RegisterPage(modPgInfo);
cp.RegisterPage(
ControlPanelCategoryInfo.HealthAndDiagnostics,
modPgInfo);
/// The ExtensibilityManager is used to add a new icon/element
/// to the InetMgr UI in the Connections frame.
IExtensibilityManager extensMgr =
(IExtensibilityManager)GetService(
typeof(IExtensibilityManager));
System.Diagnostics.Debug.Assert(extensMgr != null);
extensMgr.RegisterExtension(typeof(HierarchyProvider),
new DemoHierProvidr(serviceProvider));
}
private void UpdateFilter(string description,
bool canRemove) {
_filter = new MyModuleListPageFilter(
description, canRemove);
RefreshFilter();
}
Remarks
This method displays the filter description. If the Microsoft.Web.Management.Client.ModuleListPageFilter.CanRemove property is true
, IIS Manager displays a Remove filter link. This link appears, for example, when a list of applications is filtered by application pool.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for