开发者

SharePoint 2007: How to get List URL from List Name using Web services?

开发者 https://www.devze.com 2022-12-17 08:07 出处:网络
I have a MOSS List, how can I get the URL for the list from the List name only 开发者_如何学Pythonusing web service methods?For the next poor sucker working without documentation:

I have a MOSS List, how can I get the URL for the list from the List name only 开发者_如何学Pythonusing web service methods?


For the next poor sucker working without documentation:

/// <summary>
        /// The SharePoint Web Service: Lists.
        /// </summary>
        private readonly sharepoint.lists.Lists wsLists = new sharepoint.lists.Lists();

private string GetListUrlFromName(string listName)
        {
            XmlNode node = wsLists.GetList(listName);
            return node.Attributes["RootFolder"].Value; 
        }
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号