Share via


ChoiceList.FindTerms method

NOTE: This API is now obsolete.

Searches for vocabulary items that match the specified pattern.

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
<ObsoleteAttribute("Use CoreProperty TermSet to load the taxonomy for a Profile property.")> _
Public Function FindTerms ( _
    search As String, _
    option As ChoiceListSearchOption _
) As String()
'Usage
Dim instance As ChoiceList
Dim search As String
Dim option As ChoiceListSearchOption
Dim returnValue As String()

returnValue = instance.FindTerms(search, _
    option)
[ObsoleteAttribute("Use CoreProperty TermSet to load the taxonomy for a Profile property.")]
public string[] FindTerms(
    string search,
    ChoiceListSearchOption option
)

Parameters

Return value

Type: []
An array of vocabulary items that match the specified pattern.

Remarks

When you use the Contains option, Microsoft Office SharePoint Server 2007 searches for the following pattern: search = "%" + search + "%";

When you use the StartsWith option, Microsoft Office SharePoint Server 2007 searches for the following pattern: search = search + "%";

See also

Reference

ChoiceList class

ChoiceList members

Microsoft.Office.Server.UserProfiles namespace