c# check if a given Sharepoint path is a root sharepoint path? -


how can check if given sharepoint path through command line argument root sharepoint path?

in case running command line tool on server can use server side sharepoint om petr abdulin suggested:

new spsite(url).openweb().isrootweb

if running code on random machine (that not part of farm) have use web services (http://msdn.microsoft.com/en-us/library/dd878586(v=office.12).aspx ) or client side om sharepoint 2010 - http://msdn.microsoft.com/en-us/library/ee857094.aspx. in case sort of have guess part of path root web - i'd increase prefixes of url till can sharepoint web object corresponding path.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -