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() _ ) _ Implements INetricsServerInterface.thdelete |
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
Implements
INetricsServerInterface.thdelete
Exceptions
Exception Type | Condition |
---|---|
NetricsException | If 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 a TIBCO Patterns Engine.
![]() | |
---|---|
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"); } } } |