Removing a Scope

Note

Indexing Service is no longer supported as of Windows XP and is unavailable for use as of Windows 8. Instead, use Windows Search for client side search and Microsoft Search Server Express for server side search.

 

This code segment uses the GetCatalogByName method of the gCiAdmin AdminIndexServer object to create CiCatalog, a CatAdm object. It then uses the RemoveScope method of the CiCatalog CatAdm object to remove the selected scope from the catalog. The RemoveScopeMethod procedure is called whenever the option to remove the scope is selected on the form.

Private Sub RemoveScopeMethod()
...
    Dim CiCatalog As Object

    Set CiCatalog = ISAdminForm.gCiAdmin.GetCatalogByName(CatName)

    CiCatalog.RemoveScope (ScopeName)
...
End Sub