DocumentIdProvider.GetDocumentUrlsById Method
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)
Syntax
'Declaration
Public MustOverride Function GetDocumentUrlsById ( _
site As SPSite, _
documentId As String _
) As String()
'Usage
Dim instance As DocumentIdProvider
Dim site As SPSite
Dim documentId As String
Dim returnValue As String()
returnValue = instance.GetDocumentUrlsById(site, _
documentId)
public abstract string[] GetDocumentUrlsById(
SPSite site,
string documentId
)
Parameters
site
Type: Microsoft.SharePoint.SPSiteSPSite object that specifies the site in which to search for documents with the provided DocumentId object.
documentId
Type: System.StringA SPSite object that specifies the site in which to search for documents with the provided DocumentId object.
Return Value
Type: []
A string arrays of URLs pointing to documents with the specified Document ID.