SPSite.Url - Propriété

Obtient l’URL complète du site web racine de la collection de sites, incluant le nom d’hôte, le numéro de port et le chemin d’accès.

Espace de noms :  Microsoft.SharePoint
Assembly :  Microsoft.SharePoint (dans Microsoft.SharePoint.dll)

Syntaxe

'Déclaration
Public ReadOnly Property Url As String
    Get
'Utilisation
Dim instance As SPSite
Dim value As String

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

Valeur de propriété

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

Remarques

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 ("/").

Voir aussi

Référence

SPSite classe

SPSite - Membres

Microsoft.SharePoint - Espace de noms