Compartilhar via


ServerRelativeUrl Property

The ServerRelativeUrl property of the SPSite class gets the server-relative URL of the root Web site in the site collection.

Property Value

A string that contains the URL.

Remarks

The ServerRelativeUrl property contains a forward slash ("/").

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security