Share via


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)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public ReadOnly Property ParentId As Guid
    Get
'Usage
Dim instance As SPWorkItem
Dim value As Guid

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

Property Value

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

Remarks

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.

See Also

Reference

SPWorkItem Class

SPWorkItem Members

Microsoft.SharePoint Namespace