Share via


SPWeb.PortalUrl property

Gets the URL to a portal site that is associated with the site.

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

Syntax

'Declaration
Public ReadOnly Property PortalUrl As String
    Get
'Usage
Dim instance As SPWeb
Dim value As String

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

Property value

Type: System.String
A string that contains a URL that ends with a forward slash ("/"), as in "http://Portal_Name/".

See also

Reference

SPWeb class

SPWeb members

Microsoft.SharePoint namespace