Creating Admin Helper Objects

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 Admin Helper API provides the AdminIndexServer, CatAdm, and ScopeAdm objects for managing the tasks, catalogs, and scopes of Indexing Service. An application can use these objects, for example, to start, pause, or stop Indexing Service; set, get, or add a catalog; or set, get, or add a scope for a catalog.

The following table shows how to declare an AdminIndexServer object with either early or late binding.

Object Early Binding Late Binding
AdminIndexServer
Dim objAdminIS as Microsoft.ISAdm
Or
Reference to CIODMLib Type Library
Dim objAdminIS as Object

 

You subsequently can use either of the following statements to create the AdminIndexServer object.

Set objAdminIS = New Microsoft.ISAdm
Set objAdminIS = CreateObject("Microsoft.ISAdm")

The following table shows how to declare a CatAdm object with either early or late binding. The CatAdm object doesn't have a prog ID, so you must use a reference to the CIODMLib type library for early binding.

Object Early Binding Late Binding
CatAdm Reference to CIODMLib Type Library
Dim objCatAdm as Object

 

You subsequently can use the following statement to create the CatAdm object.

Set objCatAdm = objAdminIS.GetCatalog( )

For additional ways of creating a CatAdm object, see the other methods of the AdminIndexServer object.

The following table shows how to declare a ScopeAdm object with either early or late binding. The ScopeAdm object doesn't have a prog ID, so you must use a reference to the CIODMLib type library for early binding.

Object Early Binding Late Binding
ScopeAdm
Reference to CIODMLib Type Library
Dim objScopeAdm as Object

 

You subsequently can use the following statement to create the ScopeAdm object.

Set objScopeAdm = objCatAdm.GetScope( )

For additional ways of creating a ScopeAdm object, see the other methods of the CatAdm object.