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
search
Type: System.StringThe string to search for.
option
Type: Microsoft.Office.Server.UserProfiles.ChoiceListSearchOptionOne of the following:
ChoiceListSearchOption.Contains
ChoiceListSearchOption.StartsWith
ChoiceListSearchOption.ExactMatch
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 + "%";