Beispiel #1
0
        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));
        }
Beispiel #2
0
        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));
        }