ChoiceList.FindTerms 方法

请注意:此 API 现在已过时。

搜索与指定的模式匹配的词汇项目。

命名空间:  Microsoft.Office.Server.UserProfiles
程序集:  Microsoft.Office.Server.UserProfiles(位于 Microsoft.Office.Server.UserProfiles.dll 中)

语法

声明
<ObsoleteAttribute("Use CoreProperty TermSet to load the taxonomy for a Profile property.")> _
Public Function FindTerms ( _
    search As String, _
    option As ChoiceListSearchOption _
) As String()
用法
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
)

参数

返回值

类型:[]
与指定的模式匹配的词汇项的数组。

备注

当您使用Contains选项时, Microsoft Office SharePoint Server 2007搜索下面的模式: search = "%" + search + "%";

当您使用StartsWith选项时, Microsoft Office SharePoint Server 2007搜索下面的模式: search = search + "%";

另请参阅

引用

ChoiceList 类

ChoiceList 成员

Microsoft.Office.Server.UserProfiles 命名空间