共用方式為


SPWorkItem.WebId property

取得識別SPWorkItem物件相關聯的網站的全域唯一識別碼 (GUID)。這是選用的屬性,來使用SPWeb物件

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

Syntax

'宣告
Public ReadOnly Property WebId As Guid
    Get
'用途
Dim instance As SPWorkItem
Dim value As Guid

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

Property value

Type: System.Guid
會傳回識別網站的工作項目相關聯的 GUID。

備註

執行已在網站範圍的清理責任時,請使用這個屬性索引比較用途。

請參閱

參照

SPWorkItem class

SPWorkItem members

Microsoft.SharePoint namespace

Microsoft.SharePoint.SPWeb