PortalContext.SiteUrl Property

Gets the URL of this portal site.

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


Public ReadOnly Property SiteUrl As String
Dim instance As PortalContext
Dim value As String

value = instance.SiteUrl
public string SiteUrl { get; }

Property Value

Type: System.String
String that contains the URL of this portal site.


The SiteUrl property uses the URL mapping table (through the PortalZone property) to return a context-sensitive URL based on the request URL, if available.

See Also


PortalContext Class

PortalContext Members

Microsoft.SharePoint.Portal Namespace