SPWorkItem.ParentId property

A globally unique identifier (GUID) that specifies a user-defined parent, or ancester, object appropriate to scope the data object that is correlated with the work item.

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

public Guid ParentId { get; }

Property value

Type: System.Guid
Returns a GUID specifying a parent object.

The actual parent object type depends on the SPWorkItem object type. For example, the parent for a list item might be a Web site, its value a GUID specifying a WebID. Use this property for scoping purposes.