DocumentId.FindUrlsById method
SharePoint 2013
Finds the URLs of a document and all of its versions with a specified Id.
Assembly: Microsoft.Office.DocumentManagement (in Microsoft.Office.DocumentManagement.dll)
Parameters
- site
- Type: Microsoft.SharePoint.SPSite
ID to search for.
- docId
- Type: System.String
SPSite object to search on.
Return value
Type: []Array of strings that represents the URLs of all versions of the document found with the specified DocumentId value.
| Exception | Condition |
|---|---|
| ArgumentNullException | The SPSite object value is set to null. |