共用方式為


SPContextPageInfo.ListId property

取得清單中包含頁面的 Id。

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

Syntax

'宣告
Public Property ListId As Guid
    Get
    Friend Set
'用途
Dim instance As SPContextPageInfo
Dim value As Guid

value = instance.ListId
public Guid ListId { get; internal set; }

Property value

Type: System.Guid
該清單中的ID屬性的值。當網頁不在清單上時,則會傳回GUID.Empty 。

請參閱

參照

SPContextPageInfo class

SPContextPageInfo members

Microsoft.SharePoint namespace