ChoiceList.FindTerms Method

Searches for vocabulary items that match the specified pattern.

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

Syntax

'Declaration
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)
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