Share via


PortalContext.SiteUrl Property

NOTE: This API is now obsolete.

Gets the URL of this portal site.

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

Syntax

'Declaration
<ObsoleteAttribute("This class is obsolete.")> _
Public ReadOnly Property SiteUrl As String
    Get
'Usage
Dim instance As PortalContext
Dim value As String

value = instance.SiteUrl
[ObsoleteAttribute("This class is obsolete.")]
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