DocumentId.FindUrlById method
SharePoint 2013
Finds the URL of a document with the specified DocumentId value and versionLabel parameter value.
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
- versionLabel
- Type: System.String
Version of the label of the document for which to get the URL
Return value
Type: System.StringURL of the document as a String. null if the document is not found, or if more than one document is found
| Exception | Condition |
|---|---|
| ArgumentNullException | SPSite object value is set to null. |