Create a new transaction connection.
Namespace: NetricsServerInterface
Assembly: NetricsServerInterface (in NetricsServerInterface.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function beginWork() As NetricsTransaction |
C# |
---|
public NetricsTransaction beginWork() |
C++ |
---|
public: NetricsTransaction beginWork() sealed |
J# |
---|
public NetricsTransaction beginWork() |
JScript |
---|
public function beginWork() : NetricsTransaction |
Remarks
This creates a new connection to the ibi™ Patterns - Search Server and associates it with a new explicit transaction. All operations made through the returned interface object that modify data on the ibi Patterns Engine are associated with the transaction. This is the only means of creating explicit transactions through the .NET API.
An exception is thrown if a connection can't be established or a new transaction can't be created.
The interface object uses the connection settings of the connection manager object at the time it is created. Once created the interface object is separate from the connection manager object that created it. Changing settings in the connection manager object will not affect the settings in the interface object and vice versa.