Remove Method

This method removes an extension from the list.

Syntax

IExtensions.Remove(Extension)

Parameters

Extension

The type of filename extension to remove from the list to include or ignore.

Example

The following example removes the TMP extension to the list of filename extensions to include or exclude for the KMSampleCatalog1 catalog definition.

Option Explicit 
On Error Resume Next 

Dim objSearchAdmin, objBuildServer, objCatalogs, objCatalog, objExtensions 

Set objSearchAdmin   = CreateObject("Search.SearchAdmin.1") 
Set objBuildServer   = objSearchAdmin.BuildServer 
Set objCatalogs   = objBuildServer.BuildCatalogs 
Set objCatalog    = objCatalogs("KMSampleCatalog2") 
Set objExtensions = objCatalog.objExtensions("KMSampleCatalog1") 

objExtensions.Remove("TMP") 

'Release objects 
Set objExtensions = Nothing 
Set objCatalog    = Nothing 
Set objCatalogs   = Nothing 
Set objBuildServer   = Nothing 
Set objSearchAdmin   = Nothing 
 

See Also

Add


© 1997-1998 Microsoft Corporation. All rights reserved.