This topic has not yet been rated - Rate this topic

DocumentIdProvider.GetDocumentUrlsById Method

SharePoint 2010

Implements a custom search method; returns an array of URLs pointing to documents with a specified DocumentId value.

Namespace:  Microsoft.Office.DocumentManagement
Assembly:  Microsoft.Office.DocumentManagement (in Microsoft.Office.DocumentManagement.dll)
public abstract string[] GetDocumentUrlsById(
	SPSite site,
	string documentId
)

Parameters

site
Type: Microsoft.SharePoint.SPSite
SPSite object that specifies the site in which to search for documents with the provided DocumentId object.
documentId
Type: System.String
A SPSite object that specifies the site in which to search for documents with the provided DocumentId object.

Return Value

Type: System.String[]
A string arrays of URLs pointing to documents with the specified Document ID.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Documentation for documentID parameter missing.
I'm wondering whether this method will also allow me to search for partial document IDs. However, the documentation above erroneously duplicates the documentation of the site parameter, so that doesn't really help much.