MTx.SafeRef Method Example

import com.ms.mtx.*;


IMyInterface safeMyObject = null;
IAnotherObject someOtherObject = null;

// Get a safe reference.
safeMyObject = (IMyInterface) MTx.SafeRef(this);

// Invoke a method on another object, passing the
// safe reference so it can call back.
someOtherObject.CallMeBack(safeMyObject);

© 1997 Microsoft Corporation. All rights reserved.