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)

Syntax

'Declaration
Public Function GetUrls As List(Of SPSiteUrl)
'Usage
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

Reference

SPSite class

SPSite members

Microsoft.SharePoint namespace