Delete a table.


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

Syntax

Visual Basic (Declaration)
Public Sub tbldelete( _ 
   ByVal tblName As String _ 
)
C#
public void tbldelete(
   string tblName
)
C++
public:
 void tbldelete(
   String tblName
) sealed 
J#
public void tbldelete(
   string tblName
)
JScript
public  function tbldelete(
   tblName : String
)

Parameters

tblName
The name of the table to be deleted

Exceptions

Exception TypeCondition
NetricsExceptionIf the server indicates that an error has occured (Possible errors - TBLNOTFOUND, EXPECTTBLDESC, NOTBLDESC, NOSYSINIT)

Remarks

Call this method to delete an existing table.

Example

This sample shows how to delete an ibi™ Patterns - Search table.

 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);
                        // Table to be deleted
                        String table = "names";
                        si.tbldelete(table);
                        Console.WriteLine("Table deleted: " + table);
                    }
                    catch (NetricsException e)
                    {
                        Console.Write(e.getErrorDescription() + "\n");
                    }
                  }
               }
             

See Also