How to check if the site is SPLMS course site using API

You can try this code:
 
static bool IsCourseTemplate(SPWeb spWeb)
        {
            return (string.Equals(spWeb.WebTemplate, "LMS2", StringComparison.InvariantCultureIgnoreCase) && spWeb.Configuration == 2001);
        }
 

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Please sign in to leave a comment.