hello,
I need to get the links of lists[Document,pictures,lists,library,survey] every things,how i will get this?
thanks
Sharepoint using SOAP get List link url
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
vamsi charan10 reputationPosted Dec 9, 2013, 2:02 AM EST
public void AccessListsAndLibraries()
{
using(SPSite site = new SPSite("[Site Collection URL]"))
{
using(SPWeb web = site.openweb())
{
foreach(SPList list in web.Lists)
{
Console.writeline("List Name : {0} and its url is : {1}",list.Title,list.url)
}
}
}
}
Note: The credentials under which console application is running should be having permission to site and the site collection data base to enumerate to all lists with in the site.
Regards,
Vamsi Charan.