Share via


PortalUrl Class

The PortalUrl class represents a URL used to access a portal site from a specified zone.

System.Object

   Microsoft.SharePoint.Portal.Topology.TopologyObjectBase

       Microsoft.SharePoint.Portal.Topology.PortalUrl

Public Constructors

The following table shows the constructors of the PortalUrl class and a brief description of each.

Name Description
PortalUrl Initializes a new instance of the PortalUrl class based on the specified name and URL of a portal site.

Public Methods

The following table shows the public methods of the PortalUrl class and a brief description of each.

Name Description
Commit(Boolean) Persists changes made to the properties of the URL.

Public Properties

The following table shows the properties of the PortalUrl class, the data type of each property, and a brief description of each.

Name Data Type Description
Item(Microsoft.SharePoint.Portal.Topology.PortalZone) System.Uri Gets or sets the portal site URL associated with a particular Web content zone.
Name String Gets or sets the name of the URL of a portal site.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Remarks

Each PortalSite object may be associated with up to four URLS. For example, Internet users may access a portal site by using a different URL from intranet users. Each PortalUrl object represents the base URL of a specific portal site for one zone.

To use the properties and methods of the objects in the Topology namespace you must be a member of the local STS_WPG and SPS_WPG security groups, and a member of the db_owner database role for the configuration database.

In addition, for certain methods, such as those that create a portal site, you must be a member of the local Administrators group, and have membership in the Database Creators and Security Administrators server roles in the SQL Server instance that hosts the configuration database.

Requirements

Namespace: Microsoft.SharePoint.Portal.Topology

Platforms: Microsoft Windows Server 2003

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

Security: Code Access Security