How to get absolute URL of a web application (SPWebApplication) in SharePoint 2010 C#

Hi

Here is the sample code to get absolute URL of web application;

string path = webApp.GetResponseUri(SPUrlZone.Default).AbsoluteUri;

Thanks

Comments

Popular Posts

GREYCstoration Oil Paint plugin for Photoshop

Service Bus Gateway service stuck at Starting

PowerApps SubmitForm not clearing People Picker value

Apple iPhone sending SMS automatically 00447786205094

Download file failed signature verification and may have been tampered with - Workflow Manger 1.0 Refresh (CU2)