Freigeben über


SPSite.Url-Eigenschaft

Ruft die vollständige URL der Stammwebsite der Websitesammlung (einschließlich Hostname, Portnummer und Pfad) ab.

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

Syntax

'Declaration
Public ReadOnly Property Url As String
    Get
'Usage
Dim instance As SPSite
Dim value As String

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

Eigenschaftswert

Typ: System.String
A string that contains the URL.

Hinweise

The Url property contains a string such as http://Host_Name:80/sites/Site_Name. Note that the URL does not end with a slash ("/").

Siehe auch

Referenz

SPSite Klasse

SPSite-Member

Microsoft.SharePoint-Namespace