Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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 (AllowCommit)
{
    ContextUtil::SetComplete();
}
else
{
    ContextUtil::SetAbort();
}

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft