MTx.GetObjectContext Method, IObjectContext.CreateInstance Method Example

import com.ms.mtx.*;


IAccount account = null;

// Get the object's ObjectContext and
// use it to instantiate another object.
account = (IAccount) MTx.GetObjectContext().
    CreateInstance(CAccount.clsid, IAccount.iid);