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
- search
Type: System.String
The string to search for.
- option
Type: Microsoft.Office.Server.UserProfiles.ChoiceListSearchOption
One 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 + "%";