Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetUrls method

SPSite.GetUrls method

SharePoint 2013

Retrieve all the URLs for the site collection, including both Primary URL and all Secondary URLs

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public List<SPSiteUrl> GetUrls()

Return value

Type: System.Collections.Generic.List<SPSiteUrl>
A list of all URLs and zones for the site collection
© 2015 Microsoft