A member of the Microsoft.SharePoint namespace, SPSite represents a collection of sites in a Web application, including a top-level Web site and all its subsites. Each SPSite object, or site collection, is represented within an SPSiteCollection object that consists of the collection of all site ...

learn more… | top users | synonyms

0
votes
1answer
46 views

how to get spsite title only

Right now my code gets the URL from my SPSite but I only want to get the Title var url = portalUrl.Text; if (SPSite.Exists(new Uri(url))) { using (SPSite oSiteCollection = new SPSite(url)) { ...
0
votes
0answers
8 views

calulate dynamic url according to the zone

I have created a new url for Custom zone of a Site Collection using Set-SpSiteurl. I have a Visual Web Part which displays items in a custom list. Each item in this list has a SPFieldUrlValue. I would ...
0
votes
0answers
107 views

SPSite.Usage.Storage seems incorrect for some SCs

I am seeing weird results from getting the Usage.Storage data from some site collections. For one site in particular it is returning 0.04GB. A subsite within this site collection is returning 2.56GB. ...
0
votes
0answers
48 views

Cannot connect to my SPSite

I'm facing a strange issue. I have a console application project and added assembly Microsoft.SharePoint from C:\Program Files\Common Files\Microsoft Shared\Web Server ...
0
votes
0answers
47 views

search mutliple sites get-SPsite

I have a site mysite which also has other site collections which are not shown if you just do Get-SPSite is there anyway to search multiple site using Get-SPSite I know this doesn't work but for ...