SPSite.GetUrls method

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 Function GetUrls As List(Of SPSiteUrl)
Dim instance As SPSite
Dim returnValue As List(Of SPSiteUrl)

returnValue = instance.GetUrls()
public List<SPSiteUrl> GetUrls()

Return value

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

See also


SPSite class

SPSite members

Microsoft.SharePoint namespace