다음을 통해 공유


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