This documentation is archived and is not being maintained.

PortalName Property

SharePoint 2003

The PortalName property of the SPSite class gets or sets the name of a portal.

Property Value

A string that contains the portal name.


The PortalName property must be set together with the PortalUrl property in order to establish a connection to a portal site. The PortalUrl property must be specified first and the PortalName property second.


The following code example uses the PortalName property to establish a connection to a portal site from the specified site collection.


Platforms: Microsoft Windows Server 2003

Security: Code Access Security