The following table contains information on the ISCSession interface:
|
Signature |
Description |
Valid Arguments |
|---|---|---|
|
VARIANT_BOOL CommitTransaction(VARIANT TransactionId) |
Commits the specified transaction |
None |
Example 19
The following example illustrates modifying the model using the Commit Transaction in C++. The example uses a Session object from Example 6:
void Transaction(ISCSessionPtr & scSessionPtr )
{
variant_t transactionId; // transaction ID for the session
VariantInit(&transactionId);
transactionId = scSessionPtr->BeginTransaction();
// Make modifications to the model here ….
scSessionPtr->CommitTransaction(transactionId);
}
The following example illustrates modifying the model using the Commit Transaction in Visual Basic .NET. The example uses a Session object from Example 6:
Public Sub Transaction(ByRef scSession As SCAPI.Session )
Dim scTransactionId As Variant
scTransactionId = scSession.BeginTransaction
' make modifications here …
scSession.CommitTransaction( scTransactionId )
End Sub
|
Copyright © 2013 CA.
All rights reserved.
|
|