Sometimes you may would like to get the URL of the
SharePoint web application. Assume that you have a web application created but
yet you have not created the site collection.
There may be a case to get the URL and even sometimes the
port on which your web application is running programmatically.
You do not get these information directly via
SPWebApplication object property. You can get this like shown below.
Hope this helps.
No comments:
Post a Comment