Replace a set of records in a table.
Namespace: NetricsServerInterface
Assembly: NetricsServerInterface (in NetricsServerInterface.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function recreplace( _ ByVal tblName As String, _ ByVal src As NetricsTableRecSrc, _ ByVal doMaxWork As Boolean, _ ByVal l As NetricsLock _ ) As NetricsTableStats |
C# |
---|
public NetricsTableStats recreplace( string tblName, NetricsTableRecSrc src, bool doMaxWork, NetricsLock l ) |
C++ |
---|
public: NetricsTableStats recreplace( String tblName, NetricsTableRecSrc src, bool doMaxWork, NetricsLock l ) sealed |
J# |
---|
public NetricsTableStats recreplace( string tblName, NetricsTableRecSrc src, bool doMaxWork, NetricsLock l ) |
JScript |
---|
public
function recreplace( tblName : String, src : NetricsTableRecSrc, doMaxWork : bool, l : NetricsLock ) : NetricsTableStats |
Parameters
- tblName
- The name of the table containing the records being replaced
- src
- The record source for those records which will be replaced
- doMaxWork
- Continue on error - replaces 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 replaced
Exceptions
Exception Type | Condition |
---|---|
NetricsException | If the server indicates that an error has occured (Possilbe errors - TBLLOCKED, TBLNOTFOUND, DUPRECKEYS, EXPECTTBLDESC, EXPECTLIST, EXPECTRECORD, FIELDLENSUM, NOTBLDESC, NORECKEY, NOSRCHTXT, NUMFIELDS, RECNOTFOUND, UPDPARAM, SHUTDOWN) |