共用方式為


SPSiteAdministration.Url property

取得在此網站集合的頂層網站的 URL。

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

Syntax

'宣告
Public ReadOnly Property Url As String
    Get
'用途
Dim instance As SPSiteAdministration
Dim value As String

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

Property value

Type: System.String
包含 URL 的字串。

請參閱

參照

SPSiteAdministration class

SPSiteAdministration members

Microsoft.SharePoint.Administration namespace