ContextUtil.SetComplete Method ()

 

Sets the consistent bit and the done bit to true in the COM+ context.

Namespace:   System.EnterpriseServices
Assembly:  System.EnterpriseServices (in System.EnterpriseServices.dll)

public static void SetComplete()

Exception Condition
COMException

There is no COM+ context available.

If asked, the COM+ context will commit the current transaction, and the object is deactivated on method return.

The following code example demonstrates the use of this method.

// Commit or abort the transaction 
if (commit)
{
    ContextUtil.SetComplete();
}
else
{
    ContextUtil.SetAbort();
}

.NET Framework
Available since 1.1
Return to top
Show: