Question

I would like to expose some additional features in my WebPart when it is added to the Central Administration site. I tried testing for SPAdministrationSiteType.TenantAdministration, but it didn't work.

Any ideas?

Was it helpful?

Solution

the magic setting is: SPContext.Current.Site.WebApplication.IsAdministrationWebApplication

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top