public static void GetXSchoolsByXRoster(XPress xPress) { List <XSchoolType> xSchoolTypeList = xPress.GetXSchoolsByXRoster(ROSTER_REFID, OPAQUE_MARKER).Data; foreach (XSchoolType o in xSchoolTypeList) { Console.WriteLine(o.refId + " | " + o.schoolName + " | " + o.Metadata.SchoolYear); } }