Platform SDK: Transaction Server

IObjectControl.CanBePooled Method Example

[This product will work only on Windows NT 4.0 versions and earlier. For Windows 2000 and later, see COM+ (Component Services).]

import com.ms.mtx.*;

boolean CanBePooled()
{
    // This object should not be recycled,
    // so return false.
    return false;
}