How to programmatically highlight WSS and MOSS

I need to know if I work with SharePoint Services or SharePoint Portal Server when using the SP API. Is there a way to do this in code (C #)?

+3
source share
3 answers

You can check if the build version is different using SPFarm.BuildVersion:

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spfarm.buildversion.aspx

+3
source

Send a Karine Bosch blog post β€œDetermine if MOSS is installed by checking the registry key . ” This should help.

+2
source

Remember that even if MOSS is installed on the server, it is quite possible that for sites / site collections on which your code should work, only WSS functions are activated. Thus, an alternative way is to check if certain MOSS functions are available on the server, and maybe even check if they have been activated. A good candidate would be the publishing feature, which only comes with MOSS.

+2
source

Source: https://habr.com/ru/post/1707247/


All Articles