ScopeInfo

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.

 

The ScopeInfo form specifies several scope properties for a new scope of a catalog. This form appears when creating a new directory using the AdminCatalog form. The ScopeInfo form contains the following controls.

  • A text box for the path of the scope.
  • A text box for the login name for the scope.
  • A text box for the password for the scope.
  • A check box that specifies excluding the path from the catalog.
  • A command button to set the specified properties.
  • A command button to cancel the action.

This code segment uses the GetCatalogByName method of the gCiAdmin AdminIndexServer object to create CiCatalog, a CatAdm object. It then uses the AddScope method of the CiCatalog CatAdm object to add the scope properties from the form to the catalog.

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

    Set CiCatalog = ISAdminForm.gCiAdmin.GetCatalogByName(Tag)

    Dim vLogon As Variant
    Dim vPassword As Variant

    vLogon = strLogon.Text
    vPassword = strPassword.Text

    CiCatalog.AddScope strPath, fExcludeScope.Value, vLogon, vPassword
...
End Sub