Delete a table.
Namespace: NetricsServerInterface
Assembly: NetricsServerInterface (in NetricsServerInterface.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub tbldelete( _ ByVal tblName As String _ ) _ Implements INetricsServerInterface.tbldelete |
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
Implements
INetricsServerInterface.tbldelete
Exceptions
Exception Type | Condition |
---|---|
NetricsException | If 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 a TIBCO Patterns Engine table.
![]() | |
---|---|
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"); } } } |