Delete one or more thesauri currently loaded on the server.


Namespace: NetricsServerInterface
Assembly: NetricsServerInterface (in NetricsServerInterface.dll)

Syntax

Visual Basic (Declaration)
Public Sub thdelete( _ 
   ByVal theslist As String() _ 
)
C#
public void thdelete(
   string[] theslist
)
C++
public:
 void thdelete(
   array<String>^ theslist
) sealed 
J#
public void thdelete(
   string[] theslist
)
JScript
public  function thdelete(
   theslist : String[]
)

Parameters

theslist
The names of the tables to be deleted. Pass null to delete all thesauri on the server.

Return Value

Nothing

Exceptions

Exception TypeCondition
NetricsExceptionIf the server indicates that an error has occured (Possible errors - NODBDESC, THESNOTFOUND, EXPECTLIST, FEATURESET, PARAMVAL, INTERNAL, NOSYSINIT)

Remarks

This deletes all of the thesauri given (all thesauri on the server if null is passed).

Example

This sample shows how to delete a thesaurus in an ibi™ Patterns - Search Server.

 Copy Code
            using NetricsServerInterface;  
            class MyClass 
              {
                private static NetricsServerInterface.NetricsServerInterface si = null;     
                public static void Main() 
                 {
                   try
                   {
                       String host = "localhost";
                       int port = 5051;
                       si = new NetricsServerInterface.NetricsServerInterface(host, port);
                       // Delete the nicknames thesaurus.  A null will delete all thesauri.
                       String[] thesList = {"nicknames"};
                       si.thdelete(thesList);
                       Console.WriteLine("Thesaurus(es) deleted.");
                   }
                   catch (NetricsException e)
                   {
                       Console.Write(e.getErrorDescription() + "\n");
                   }
                 }
              }
            

See Also