DocumentId.FindUrlsById Method
Finds the URLs of a document and all of its versions with a specified Id.
Namespace: Microsoft.Office.DocumentManagement
Assembly: Microsoft.Office.DocumentManagement (in Microsoft.Office.DocumentManagement.dll)
Syntax
'Declaration
Public Shared Function FindUrlsById ( _
site As SPSite, _
docId As String _
) As String()
'Usage
Dim site As SPSite
Dim docId As String
Dim returnValue As String()
returnValue = DocumentId.FindUrlsById(site, _
docId)
public static string[] FindUrlsById(
SPSite site,
string docId
)
Parameters
site
Type: Microsoft.SharePoint.SPSiteID to search for.
docId
Type: System.StringSPSite 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.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The SPSite object value is set to a null reference (Nothing in Visual Basic). |
Remarks
An array of strings representing the URLs of all the versions of the document found with the specified Id. a null reference (Nothing in Visual Basic) and 0 length arrays mean no results were found.