Compartilhar via


Url Property

The Url property of the SPSite class gets the full URL to the root Web site of the site collection, including host name, port number, and path.

Property Value

A string that contains the URL.

Remarks

The Url property contains a string such as http://Host_Name:80/sites/Site_Name or http://Host_Name:80/Site_Name.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security