TNWiki Article Spotlight - SharePoint 2016: Detect SharePoint Edition Using SSOM C#

Hello all!

Good morning to all !!!

We are here again for TNWiki Article Spotlight.

I am on this platform from more than a decade and I have seen a lot of good quality articles. Some are lengthy with all details and graphics while some are relatively smaller and still great. Today, I am going to discuss wiki article: SharePoint 2016: Detect SharePoint Edition Using SSOM C# by M.Qassas. This is a short article with excellent contents worth reading.

There are many circumstances when we need to know version of a software. In the referred article M.Qassas explained very nicely about getting the version of SharePoint using SSOM C#. Everything has been concluded in short code-snippet:

public string Get_SPVersion() { try { return SPFarm.Local.BuildVersion.ToString(); } catch (Exception) { throw; } }

Finally, author explains when we can get the version number using above code and when we can't.

I congratulate, M.Qassas for this short but worthful article.

 

Ninja Gaurav Arora

- Ninja Gaurav