共用方式為


SPWeb.ParentWebId property

取得網站的父網站的識別項 (ID)。

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

Syntax

'宣告
Public ReadOnly Property ParentWebId As Guid
    Get
'用途
Dim instance As SPWeb
Dim value As Guid

value = instance.ParentWebId
public Guid ParentWebId { get; }

Property value

Type: System.Guid
識別父網站的 GUID。

請參閱

參照

SPWeb class

SPWeb members

Microsoft.SharePoint namespace