NOTE: This method is now obsolete.
Deprecated since 5.6.0. Use transactions instead. Delete multiple records from a table.
Namespace: NetricsServerInterface
Assembly: NetricsServerInterface (in NetricsServerInterface.dll)
Syntax
| Visual Basic (Declaration) |
|---|
| Public Function recdelete( _ ByVal tblName As String, _ ByVal recKeys As String(), _ ByVal doMaxWork As Boolean, _ ByVal l As NetricsLock _ ) As NetricsTableStats |
| C# |
|---|
| public NetricsTableStats recdelete( string tblName, string[] recKeys, bool doMaxWork, NetricsLock l ) |
| C++ |
|---|
| public: NetricsTableStats recdelete( String tblName, array<String>^ recKeys, bool doMaxWork, NetricsLock l ) sealed |
| J# |
|---|
| public NetricsTableStats recdelete( string tblName, string[] recKeys, bool doMaxWork, NetricsLock l ) |
| JScript |
|---|
| public
function recdelete( tblName : String, recKeys : String[], doMaxWork : bool, l : NetricsLock ) : NetricsTableStats |
Parameters
- tblName
- The name of the table from which the records will be deleted
- recKeys
- The record keys of the records to be deleted
- doMaxWork
- Continue on error - deletes those records which do exist
- l
- A NetricsLock object which will pass the lock key to the table. If the table is locked with a lock key and this parameter is not passed with the matchine key, the operation will fail.
Return Value
The stats for the table after the records have been deleted
Exceptions
| Exception Type | Condition |
|---|---|
| NetricsException | If the server indicates that an error has occured (Possible errors - TBLLOCKED, TBLNOTFOUND, DUPRECKEYS, EXPECTTBLDESC, EXPECTLIST, EXPECTRECKEY, NOTBLDESC, NORECKEY, RECNOTFOUND, UPDPARAM, SHUTDOWN) |