Friday 8 November 2013

Programmatically get all web application Name in share point using C#

Share it Please
get all webapplicationName:-
 
            string strurls = "";
            SPWebApplicationCollection webapps = SPWebService.ContentService.WebApplications;
            foreach (SPWebApplication webapp in webapps)
            {
                string WebName = webapp.DisplayName;
                foreach (SPAlternateUrl url in webapp.AlternateUrls)
                {
                  strurls = url.Uri + "";
                }
             }

No comments:

Post a Comment

Followers

Follow The Author