Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Hot to detect User Profile Service is enabled or not

$
0
0

Hi! I need to retrieve some properties from User Profile Service.

According to this article

http://social.technet.microsoft.com/wiki/contents/articles/...

I solve my task. But there is one problem in this code string:

 if (services.TypeName == "User Profile Service Application Proxy")
{IsUserProfileServiceEnabled = true;}

UPSA property TypeName is Culture Dependent, so my code doesn't work in German location. What is the way to solve this issue?



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>