public static GadgetSpec GetGadgetByPropertyURI(string propertyURI) { foreach (GadgetSpec spec in GetAllDBGadgets(true).Values) { if (propertyURI.Equals(ORNG_ONTOLOGY_PREFIX + "has" + spec.GetFileName())) { return spec; } } return null; }
public void RemovePersonalGadget(long Subject, string propertyURI) { GadgetSpec spec = OpenSocialManager.GetGadgetByPropertyURI(propertyURI); if (spec != null) { RemovePersonalGadget(Subject, spec.GetAppId()); } }