Finds the URL of a document with the specified DocumentId value and versionLabel parameter value.
Public Shared Function FindUrlById ( _ site As SPSite, _ docId As String, _ versionLabel As String _ ) As String
Dim site As SPSite Dim docId As String Dim versionLabel As String Dim returnValue As String returnValue = DocumentId.FindUrlById(site, _ docId, versionLabel)
public static string FindUrlById( SPSite site, string docId, string versionLabel )
SPSite object value is set to nullNothingnullptra null reference (Nothing in Visual Basic).
If there is more than one result, this method will return nullNothingnullptra null reference (Nothing in Visual Basic). In that case, use the FindUrlsById()()() method.