Share via


ModuleListPage.RefreshFilter Method

Definition

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