How to Get Site name Programmatically in SharePoint 2013 using client side (CSOM)

This might be pretty basic, but it’s good to know 🙂
Sometimes or most of the time, the url is different from the name of the site.
For example:
The url will be like “http://roel2013/sites/t1” but the site name is “testing”
So we must not rely on the url for the site name.
To get the site name programatically, use the code below.

Leave a Reply

Your email address will not be published. Required fields are marked *