DocumentSet.FindParentDocumentSet method
Attempts to find the parent Document Set of the passed in item.
Namespace: Microsoft.Office.DocumentManagement.DocumentSets
Assembly: Microsoft.Office.DocumentManagement (in Microsoft.Office.DocumentManagement.dll)
Syntax
'Declaration
Public Shared Function FindParentDocumentSet ( _
item As SPListItem _
) As DocumentSet
'Usage
Dim item As SPListItem
Dim returnValue As DocumentSet
returnValue = DocumentSet.FindParentDocumentSet(item)
public static DocumentSet FindParentDocumentSet(
SPListItem item
)
Parameters
item
Type: Microsoft.SharePoint.SPListItemThe SPListItem object for which the parent document set is to be found.
Return value
Type: Microsoft.Office.DocumentManagement.DocumentSets.DocumentSet
The DocumentSet object that represents the parent DocumentSet or a null reference (Nothing in Visual Basic) if none was found.