DocIdLookup.DoSearch Method
Returns an array of URLs that point to documents with the specified DocumentId object.
Namespace: Microsoft.Office.DocumentManagement
Assembly: Microsoft.Office.DocumentManagement (in Microsoft.Office.DocumentManagement.dll)
Syntax
'Declaration
Public Shared Function DoSearch ( _
site As SPSite, _
docId As String _
) As String()
'Usage
Dim site As SPSite
Dim docId As String
Dim returnValue As String()
returnValue = DocIdLookup.DoSearch(site, _
docId)
public static string[] DoSearch(
SPSite site,
string docId
)
Parameters
site
Type: Microsoft.SharePoint.SPSiteAn SPSite object that specifies the site in which to search for documents with the provided DocumentId object
docId
Type: System.StringA string that specifies the DocumentId object
Return Value
Type: []
A string array of URLs that point to documents that are associated with the specified DocumentId
Remarks
This method is called when a user is trying to locate a document by its Document ID. Depending on the default Document ID Provider registered, it may use custom provider search functionality. If the DoCustomSearchBeforeDefaultSearch property for the provider is set to false, it uses the default search funtionality.