Central Administration test
-
16-10-2019 - |
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?
Solution
the magic setting is: SPContext.Current.Site.WebApplication.IsAdministrationWebApplication
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange