PortalContext.SiteUrl Property

Gets the URL of this portal site.

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

Syntax

'Declaration
Public ReadOnly Property SiteUrl As String
    Get
'Usage
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.

Remarks

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

Reference

PortalContext Class

PortalContext Members

Microsoft.SharePoint.Portal Namespace