共用方式為


SPList.ParentWebUrl property

取得上層網站的 URL 清單。

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

Syntax

'宣告
Public ReadOnly Property ParentWebUrl As String
    Get
'用途
Dim instance As SPList
Dim value As String

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

Property value

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

請參閱

參照

SPList class

SPList members

Microsoft.SharePoint namespace