Share via


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

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.

See also

Reference

DocIdLookup class

DocIdLookup members

Microsoft.Office.DocumentManagement namespace

DocumentId

DocumentIdProvider

DoCustomSearchBeforeDefaultSearch