When to use Scope.SetVariable() with ObjectHandle

May 14, 2010 at 2:47 AM

Wanted to find out when to use the Scope.SetVariable(string name, ObjectHandle handle) method as opposed to the Scope.SetVariable(string name, object value). I want to pass complex objects to my Script in the same manner which MSScriptControl.AddObject() method allows to do.