Finds the Web application that is located in the specified path.
static void Main(string[] args) { SPWebApplication app = SPWebApplication.Lookup(new Uri("http://spdev2010:1000")); }