4

Like in the title - is there a method of getting it without supplying the URL?

1 Answer 1

6

Rafal,

You can use:

Microsoft.SharePoint.Administration.SPAdministrationWebApplication centralWeb =
SPAdministrationWebApplication.Local;
2
  • you was first :)
    – Alexander
    Commented Sep 4, 2013 at 13:37
  • :) you explained it better! Commented Sep 4, 2013 at 13:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.