These are old docs and we haven't found the time to completely move them. You will find comprehensive new docs on docs.2sxc.org.
Use as follows
var x = CreateSource<Eav.DataSources.App>();
x.AppSwitch = 17;
x.ZoneSwitch = 2; // the other portal
var categories = x["Categories];