private static object BindTermWssId(object obj, Hashtable bindings) { ISPObjectContext context = bindings as ISPObjectContext; if (context == null) { throw new InvalidOperationException(); } return(((Term)obj).GetWssIds(context.Site, true)); }
private static object BindTermWssIdFromGuid(object obj, Hashtable bindings) { ISPObjectContext context = bindings as ISPObjectContext; if (context == null) { throw new InvalidOperationException(); } Term t = context.TermStore.GetTerm((Guid)obj); return(t == null ? new int[0] : t.GetWssIds(context.Site, true)); }