Freigeben über


SPSite / SPWeb object for orphaned sites and web created through VS.net web project

Can we get the SPSite object for a site once the wildcard inclusion is removed?

Unfortunately the answer is no. We can't get a SPSite object instantiated for a site in that former included path using either a URI or GUID to instantiate, once the wildcard is removed.

Note : If you create a SPSite / SPWeb object, the object will always points to the root web.

Is there any property to differentiate the web created through VS.net web project with regular WSS web?

If you create a project in through VS.net, Sharepoint will always treat it as a empty web. Unfortunately we do not have any property to differentiate these webs.

The title property could be used but we cannot give any guarantee that all other regular webs will not have empty ("") string as title.

Comments